MSI VB Custom Action
-
I add an application to the …\Windows\CurrentVersion\Run\ folder in the registry during an install, and would like to start the application immediately. The first solution would be to start the application manually from within a Visual Basic Script Custom Action, and the second solution would be to force a system reboot. Either would be acceptable. But I can’t seem to figure out how to set the “REBOOT” property to “Force” or to run an application in my Visual Basic script. Any help would be good. Thank you in advance.
-
I add an application to the …\Windows\CurrentVersion\Run\ folder in the registry during an install, and would like to start the application immediately. The first solution would be to start the application manually from within a Visual Basic Script Custom Action, and the second solution would be to force a system reboot. Either would be acceptable. But I can’t seem to figure out how to set the “REBOOT” property to “Force” or to run an application in my Visual Basic script. Any help would be good. Thank you in advance.
To launch an external app try WshShell.Run or WshShell.Exec and supply it with the exact same command line that you put into the Run key. You can find more info on the WshShell.Run command here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/wsmthrun.asp
RageInTheMachine9532