Click here to Skip to main content
15,893,486 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi friends,

I know I can run the application by Setting a value in this registry Location...
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run

But its via the application,,, I dont want to give administrative privileges to my current application.... So it should set by the Installer...
How can I do it in Installshield?? There is an option to add registry entries in Installshield Limited Edition... But I dont know how to use it ....

Please Helpp friends....
Posted

1 solution

In installshield 2011, you can use the following approach from their [web site]:

To specify a registry key to be created on the target system when a component is installed:
In the View List under System Configuration, click Registry.
Windows Installer projects: In the View Filter list, click the component with which you want to associate the registry data.

If All Application Data is selected, the Registry view is read-only.
InstallScript projects: In the Destination computer’s Registry view pane, open an existing registry set or create one by right-clicking the Destination Computer folder. Associate the registry set with one or more components by clicking the registry set and selecting the desired components in the Registry Set Install Conditions pane.
In the Destination computer’s Registry view pane, right-click a registry hive or key, point to New, and then click Key. InstallShield adds a new key with the name New Key-n (where n is a successive number).
Enter a meaningful name to rename the key, or right-click the key and click Rename to give it a new name later.
InstallShield adds your new key with an empty default string value.
By default, all keys that you create are set for automatic installation and uninstallation. This means that they are installed if the component they belong to is installed, and they are uninstalled when that component in uninstalled


For more on Installshiel LE, you can consult to this link

For getting the installation directory, the property [INSTALLDIR] can be used[^]:

This directory is stored in the INSTALLDIR property in the General Information view.

One limitation of using a registry entry to set the value of INSTALLDIR is the fact that the registry entry must exist on the target system before your installation starts. If the registry entry cannot be found, INSTALLDIR is set to the last valid value you had entered for it.

For example, when you first create an installation project, the value of INSTALLDIR is [ProgramFilesFolder]Your Company Name\Default. If you were to change this to read from the registry, and the registry entry is not found, INSTALLDIR reverts to the previous value of [ProgramFilesFolder]Your Company Name\Default.


You can also set INSTALLDIR from registry [^].

Still I believe putting a shortcut of the application exe to the Startup system folder is an easier solution.
 
Share this answer
 
v3
Comments
Yesudasan Moses 13-Aug-13 8:16am    
How can I set my application exe path to registry ?
MCY 13-Aug-13 8:50am    
I have updated the answer a little. It may solve your problem.
Yesudasan Moses 13-Aug-13 10:30am    
Yea.... I got it... [INSTALLDIR]Application.exe solved the issue,,,
Thanks for your time bro,,, :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900