Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
If registry key does not exist, use path
#1
Hi,

Can you help me with an "if" type of statement please?
I would like to look for a registry key and set a variable. If registry does not exist, default to path C:\temp as example.
I use the variable to launch a software afterwards.

Right now I have this:
[code][/str TestInstallPath
rget(TestInstallPath "InstPath" "Software\test")

run F"{LPosInstallPath}\test.exe" "" "" "" 0x10100;code]
#2
if(!rget(TestInstallPath "InstPath" "Software\test")) TestInstallPath="C:\temp"
#3
Simple enough, thanks.


Forum Jump:


Users browsing this thread: 1 Guest(s)