[newbie] registry keys
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?
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
Answers (1)
Please log in to answer
Posted by:
anonymous_9363
15 years ago
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.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.