This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Selecting all instances of an application & the respective paths
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 24, 2009
01:05 AM
Selecting all instances of an application & the respective paths
Hi,
Please help me out in meeting the following requirement in the installshield.
1. Find all instances of an application (in my case its Microsoft Dynamics GP 9.0)
2. Display all the paths with its Instance Name
3. Allowing the user to choose any one path
4. Copy a file (our product file)in the selected path
At present I am hard coding the default path and copying our product file in that location.
Thanks,
Sri
Please help me out in meeting the following requirement in the installshield.
1. Find all instances of an application (in my case its Microsoft Dynamics GP 9.0)
2. Display all the paths with its Instance Name
3. Allowing the user to choose any one path
4. Copy a file (our product file)in the selected path
At present I am hard coding the default path and copying our product file in that location.
Thanks,
Sri
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 25, 2009
03:40 PM
What kind of project are you using? I'm not familiar with how that application's multiple instances work, but some InstallScript that searches for every occurrence of a telltale registry key, file/directory, etc., seems like it should work...
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 26, 2009
03:31 AM
I am working on BasicMsi project
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Business Application\Great Plains
This is the main registry path of Microsoft Dynamics GP. GP will create a folder SETUP under this registry path for every instances in the same machine.
AppPath property of the SETUP folder will give instance physical path &
InstanceName property of the SETUP folder will give instance phyiscal name.
For Eg:-
For the first installation the registry path will be
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Business Application\Great Plains
\DEFAULT\SETUP
For the second instance the registry path will be
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Business Application\Great Plains
\Inst01\SETUP
For the third instance the registry path will be
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Business Application\Great Plains
\Inst02\SETUP
Now my requirement is to find all the instances of GP in the machine and display the path with instance name in a list or tree view and allow user to select the requierd path. Then I have to use this selected path and deploy our product file in that physical location.
Please Guide me.
Thanks,
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Business Application\Great Plains
This is the main registry path of Microsoft Dynamics GP. GP will create a folder SETUP under this registry path for every instances in the same machine.
AppPath property of the SETUP folder will give instance physical path &
InstanceName property of the SETUP folder will give instance phyiscal name.
For Eg:-
For the first installation the registry path will be
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Business Application\Great Plains
\DEFAULT\SETUP
For the second instance the registry path will be
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Business Application\Great Plains
\Inst01\SETUP
For the third instance the registry path will be
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Business Application\Great Plains
\Inst02\SETUP
Now my requirement is to find all the instances of GP in the machine and display the path with instance name in a list or tree view and allow user to select the requierd path. Then I have to use this selected path and deploy our product file in that physical location.
Please Guide me.
Thanks,
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 30, 2009
07:07 PM
A custom action that calls RegDBQueryKey should get the values.
(Displaying them in a dialog box will be another challenge, but working out the query should be a good start. For the dialog box, something like the help topic "Windows Installer API Functions Example" gives the general idea.)
(Displaying them in a dialog box will be another challenge, but working out the query should be a good start. For the dialog box, something like the help topic "Windows Installer API Functions Example" gives the general idea.)
![](/skins/images/089A6DFE1F4989CB8CCC689A38D62C96/responsive_peak/images/icon_anonymous_message.png)