Registry Writing and rebooting

Got a problem you cannot solve? Try here.
Post Reply
groundhog
Posts: 2
Joined: Thu Dec 30, 2004 12:28 pm

Registry Writing and rebooting

Post by groundhog »

Okay two questions here, one is more of a suggestion.
I'm trying to write some values and keys to the target registry. I used the Visual part to easily setup where the keys need to go and I checked it in the code but when I run the program both a real build and a debug build nothing is changed in the regestry. Any ideas?

Speaking of the regestry, when the intaller has to install some prereqs that need the computer to be rebooted, instead of making the use restart the install program, a registry value could be added to the RUN area for the current user which would then auo launch the installer after the log in again. I was trying to do it myself but there is no way to tell the script where the location of the installer file is located to add to the registry key.
sinan
Site Admin
Posts: 1035
Joined: Sat Nov 13, 2004 8:12 am
Contact:

Post by sinan »

For the first, are you calling Apply Install, and are the registry commands in the main install section?

For the second...you can just use the Reboot and Resume command...its all you need, comes with Enterprise. If you want to do this with Professional, check the pre-defined variables in the help file - one of them contains the full path to the setup executable.
groundhog
Posts: 2
Joined: Thu Dec 30, 2004 12:28 pm

Post by groundhog »

The Apply Install is called after the registry commands.
Thanks for the info on the second thought, I will check that out more as I am using professional.
Post Reply