Posted 08 December 2005 - 18:48
I guess I must have mis-interpeted something.
Using MSI 2.0.
Using Setup.Exe from 23 Feb 2002 (German version of VS NET Installed)
Trying to run a small Update and using the Setup.INI
When i run the Update from Start-Run using:
msiexec /i "H:\Install\VBNet\MyInstall\Release\MyInstall.msi" REINSTALLMODE=vomus REINSTALL=ALL
Setup.Exe REINSTALLMODE=vomus REINSTALL=ALL
It performs the Update as a Repair.
This is what I want.
I can use the /passive parameter to just show the Progress/Status.
However, when I start the Update using the Setup.Exe (just a double click on the Setup.Exe) and use a Setup.INI with the following:
it refuses to recognize the
parameter, and the message comes up stating that the package is already installed.
What is wrong with my Setup.Ini?
|and the message comes up stating that the package is already installed|
I meant the message comes up that another version of this product is already installed
Edited by CCRMZ, 08 December 2005 - 19:44.
Posted 09 December 2005 - 00:11
I'm using VS Net to create the Installer package, and after building it, the Setup.exe and Ini are placed in the "Release" folder along with the MSI file.
I thought that the [Setup] section, in the Ini, was standard, but maybe not?
So, I guess I will need to create a new Setup.exe to understand the parameters?
Posted 09 December 2005 - 08:46
Posted 09 December 2005 - 11:07
|I don't know how that setup.exe launcher is working. Maybe it doesn't like the multiple = signs?|
After your first post and my reply a light went on for me!
It looks like the Setup.exe create by the Visual Studio Installer does not recognise any INI sections other than [MSILoader], and no Keys/arguments other than MSIFileName= (I also opened the Setup.exe and only found this one section and key)
So, I'll created a new Setup.Exe wrapper using VB, which will check if installer is loaded, and based on the OS version, load it using the InstMsiW(A) if needed, and which will take command line parameters and checks the same-named INI file for the [MSILoader] section and the MSIFileName key. And have it also check for my new [OPTIONS] and [REINSTALL] sections and possible keys. And I can add more sections and parameters if needed.
Then have it call msiexec via the ShellExecute API, passing the given CL and INI parameters.
Thank you! I would still be in the dark if you hadn't replied!