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
- :
- Installdir not changing during upgrade.
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
‎Dec 03, 2007
01:22 AM
Installdir not changing during upgrade.
Hi,
I am working on an installscriptmsi project. I am calling onresumeuibefore function during upgrade. This function looks like:
function OnResumeUIBefore()
int nResult;
string szTitle, szMsg;
begin
OnFirstUIBefore();
FeatureReinstall();
end;
In onfirstuibefore i am changing the installation directory i.e. INSTALLDIR. And i also checks the value of INSTALLDIR property in OnMoving function, it gives the new updated value. But when files really get deployed, it still deploys to the old INSTALLDIR(directory which i was using during first installation).
Can anybody tell me, why are my files not deploying to the new INSTALLDIR?
I am working on an installscriptmsi project. I am calling onresumeuibefore function during upgrade. This function looks like:
function OnResumeUIBefore()
int nResult;
string szTitle, szMsg;
begin
OnFirstUIBefore();
FeatureReinstall();
end;
In onfirstuibefore i am changing the installation directory i.e. INSTALLDIR. And i also checks the value of INSTALLDIR property in OnMoving function, it gives the new updated value. But when files really get deployed, it still deploys to the old INSTALLDIR(directory which i was using during first installation).
Can anybody tell me, why are my files not deploying to the new INSTALLDIR?
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 03, 2007
08:22 AM
If I understand you correctly, you are trying to change the installation directory during a minor upgrade? I don't think it will allow you to do that. You might look into using a major upgrade (which uninstalls, then re-installs) instead.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 03, 2007
03:41 PM
I think the only way that can be done is by generating a new GUID, but you will then get a new registry entry for that install.
![](/skins/images/CC38E504FC9E1309DC48ACFEB4925670/responsive_peak/images/icon_anonymous_message.png)