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
- :
- Re: Change Installation path through update
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
‎Feb 03, 2009
04:57 AM
Change Installation path through update
Hi
My installer project is a single installation type application. Once installed, it only gives option to modify or remove the existing installation. Is it possible that when I modify an existing installation, I can change the Installation path (TARGETDIR) in such a manner that when I uninstall it after modifying its install path, the application should remove files from the new Path.
Regards
Usman
My installer project is a single installation type application. Once installed, it only gives option to modify or remove the existing installation. Is it possible that when I modify an existing installation, I can change the Installation path (TARGETDIR) in such a manner that when I uninstall it after modifying its install path, the application should remove files from the new Path.
Regards
Usman
(5) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 06, 2009
02:30 PM
usmanjamil wrote:
Hi
My installer project is a single installation type application. Once installed, it only gives option to modify or remove the existing installation. Is it possible that when I modify an existing installation, I can change the Installation path (TARGETDIR) in such a manner that when I uninstall it after modifying its install path, the application should remove files from the new Path.
Regards
Usman
Weird situation, never had to do this..but perhaps you could try following
1. create a custom dialog box with option to change path.
2. Call this dialog box when user selects Modify button.
3. Detect if last installation path is changed (perhaps a registry comparison would help).
4. if path is changed then call your install event and move all files from old path to new path.
5. Create a registry entry indication current installation path.
I am not sure if you would be flawless in achieving your goal..but something to start with.
HTH
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 09, 2009
01:56 AM
Gvarma wrote:
Weird situation, never had to do this..but perhaps you could try following
1. create a custom dialog box with option to change path.
2. Call this dialog box when user selects Modify button.
3. Detect if last installation path is changed (perhaps a registry comparison would help).
4. if path is changed then call your install event and move all files from old path to new path.
5. Create a registry entry indication current installation path.
I am not sure if you would be flawless in achieving your goal..but something to start with.
HTH
Hi Gvarma
Thanks for your reply. All the tasks at my end will sure by handled exactly as you suggested. What I'm not sure about the behaviour of Installshield on it after I've modified the path, since I'm using the same Installer with same GUID, for modification, that installed my software at first place. Will the installer be able to remove the files on an Uninstall operation, or modify the files to new path on subsequent Modify operations. As I guess installshield keeps track of all the files copied at first place in a log somewhere and uses it to remove the files while uninstalling. So I was wondering, changing the path might not create problems while uninstalling.
Regards
Usman
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 09, 2009
10:36 AM
usmanjamil wrote:
Hi Gvarma
Thanks for your reply. All the tasks at my end will sure by handled exactly as you suggested. What I'm not sure about the behaviour of Installshield on it after I've modified the path, since I'm using the same Installer with same GUID, for modification, that installed my software at first place. Will the installer be able to remove the files on an Uninstall operation, or modify the files to new path on subsequent Modify operations. As I guess installshield keeps track of all the files copied at first place in a log somewhere and uses it to remove the files while uninstalling. So I was wondering, changing the path might not create problems while uninstalling.
Regards
Usman
Usman,
your concern is very ligitimate, however considering the fact that you are going to use "Modify" event to initiate subset of re-installation event, my "guess" is every change that would be made to your application will be properly recorded in the MSI database (though I have never tried it myself). Hence I dont think you would need to be concerned with "proper uninstallation" of your application, best way to check this out would be you create a test project and check it out yourself.
worst comes to worst, if something goes wrong you would have to write some custom code to handle it.
HTH
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 10, 2009
03:41 AM
Hi Gvarma
You are absolutely right. It can easily be checked with a test installer. I thought it would be a very common scenario and save me the time for creating a test Installer. Anyway I'll test it and update the thread with the results. Thanks alot for your help.
Regards
Usman
You are absolutely right. It can easily be checked with a test installer. I thought it would be a very common scenario and save me the time for creating a test Installer. Anyway I'll test it and update the thread with the results. Thanks alot for your help.
Regards
Usman
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 11, 2009
04:01 AM
I tested it with a test installer. It totally works. All I had to do was to modify "TARGETDIR" constant on modifying the installation. Rest all was taken care of by the installshield itself. Once the TARGETDIR has been modified any further installation modifications are done at the new path. Uninstall also works perfect by removing files from the updated path.