Hi,

I am quite new to packaging, so forgive me if this question seems obvious.

I have created a .msi to install a local application, which works fine, However i have also set the msi to remove any older version of this app, if detected.

My problem resides with the application's .ini file. If I install the app without any previous version, the .ini file is installed correctly, without any problems.

If I install the app, but get it to remove a previous version, the .ini file is not updated correctly.

The applications Original .ini file looks like this:

--------------------------------------------------------------------------------------------
[XCS Access]
LastEnvironment=1
Environment1=Training,server1,9361
[Login]
Username=
--------------------------------------------------------------------------------------------
The new .ini file should look like this:

--------------------------------------------------------------------------------------------
[Login]
Username=joanne
[XCS Access]
Environment1=(Training),server1,1111
Environment2=(Live),server1,1112
LastEnvironment=1
[Install]
RemoteInstallationDirectory=\\server1\app1
--------------------------------------------------------------------------------------------

But what I get is this:

--------------------------------------------------------------------------------------------
[XCS Access]
Environment2=(Live),server1,1112
[Install]
RemoteInstallationDirectory=\\server1\app1
--------------------------------------------------------------------------------------------

My msi's inifile table looks like this, please excuse the bad formatting. I have tried the different 'Action' types as well.

Filename, Inifile, DirProperty, Section, Key, Value, Action, Component_
"ecamis.ini","Environment1","WindowsFolder","XCS Access","Environment1","(Training),server1,1111","0","IniFile"
"ecamis.ini","Environment2","WindowsFolder","XCS Access","Environment2","(Live),server1,1112", "0","IniFile"
"ecamis.ini","LastEnvironment","WindowsFolder","XCS Access","LastEnvironment","1", "0","IniFile"
"ecamis.ini","RemoteInstallationDirectory","WindowsFolder","Install","RemoteInstallationDirectory","\\server1\app1","0","IniFile"
"ecamis.ini","Username","WindowsFolder","Login","Username","joanne", "0","IniFile"



Any help would be gratefully recevied.



0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
Is the custom action 'RemoveExistingProducts' situated towards the end of the Execute Immediate sequence. I'm guessing that your new version is installing itself and then removing the previous apps ini values towards the end of the install.
Answered 10/10/2007 by: michaelnowell
Second Degree Blue Belt

Please log in to comment
0
Thanks, you are exactly right. During the install I had noticed the the previous version was always being removed last. When I checked my InstllExecuteSequence table, RemoveExistingProducts was the very last action to be ran. Once I changed it to between the InstallValidate and InstallInitialize actions, the previous version was removed first and the .ini file was successfully replaced as I wanted.

Thanks for your help.
Answered 10/11/2007 by: beefy66
Orange Belt

Please log in to comment
0
no prolem
Answered 10/11/2007 by: michaelnowell
Second Degree Blue Belt

Please log in to comment
Answer this question or Comment on this question for clarity