WarrenW
03-23-2005, 05:10 PM
Hello,
I am trying to use the %AppPath% value in the registry because I want to add my program to the registry startup for Windows. I contacted support and they gave me the following result but the value for %AppPath% was not there.
The following lines was placed in the On Post Install because I assume the session var would be set already:
AppPath = SessionVar.Expand("%AppPath%");
Registry.SetValue(HKEY_LOCAL_MACHINE, "software\\microsoft\\Windows\\CurrentVersion\\Run", "MyProgram", AppPath.."\\services.exe", REG_SZ);
When I run the install and look in the registry, the value for this is:
%AppPath%\services.exe
The %AppPath% variable was never filled in.
Can anyone help? I would GREATLY appreciate it!
Thanks
I am trying to use the %AppPath% value in the registry because I want to add my program to the registry startup for Windows. I contacted support and they gave me the following result but the value for %AppPath% was not there.
The following lines was placed in the On Post Install because I assume the session var would be set already:
AppPath = SessionVar.Expand("%AppPath%");
Registry.SetValue(HKEY_LOCAL_MACHINE, "software\\microsoft\\Windows\\CurrentVersion\\Run", "MyProgram", AppPath.."\\services.exe", REG_SZ);
When I run the install and look in the registry, the value for this is:
%AppPath%\services.exe
The %AppPath% variable was never filled in.
Can anyone help? I would GREATLY appreciate it!
Thanks