cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
raj
Level 6

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?
Labels (1)
0 Kudos
(2) Replies
KathyMorey
Level 10

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.
0 Kudos
wcalcaterra
Level 2

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.
0 Kudos