/build/static/layout/Breadcrumb_cap_w.png

[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?

0 Comments   [ + ] Show comments

Answers (1)

Posted by: anonymous_9363 15 years ago
Red Belt
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.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ