I would like to create a registry key within HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run, so that the application loads on startup, with the following values:
Value name: GFI Email Response
Data value: <Program path> selected by the user

The screen implies that the data value has to be hard-coded e.g. C:\Program Files\Program Folder\ApplicationFile.exe, is this so?

Moreover, is it possible to have the user optionally select whether they would like the program to be started when Windows starts up?
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
The screen implies that the data value has to be hard-coded e.g. C:\Program Files\Program Folder\ApplicationFile.exe, is this so? No. Typically, you'd use the component name in Windows Installer formatted text, er, format, e.g. [!ApplicationFile.EXE]. That way, whichever folder the EXE ends up being installed into, the value will be properly resolved at install time.

Moreover, is it possible to have the user optionally select whether they would like the program to be started when Windows starts up? You would need to add a check-box to one of your Setup dialogs, assigning it a public property. Using a public property enables the install to be run silently, with that property passed in via the command line or via a transform.
Answered 12/05/2008 by: VBScab
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity