My setup has microsoft windows installer defined as prerequisites.
Everything works fine, until the msxml starts to install.
IA displays a messages you cannot install Windows XML parser, an you have to do that using the windows update, but does not explain why!
I've tried to read out the variable XML42 but is does only return the "value" ERROR.
Is it possible to capture the errorcode so I can figure out what the real problem is ?
Capture error code
Capture error code
Ton Blokhuizen
Tooling Engineer
BMA BV - Netherlands
[i]BMA: leading the way in obstetrical data management
http://www.bma-mosos.nl[/i]
Tooling Engineer
BMA BV - Netherlands
[i]BMA: leading the way in obstetrical data management
http://www.bma-mosos.nl[/i]
-
- Posts: 3452
- Joined: Thu Dec 22, 2005 7:17 pm
- Contact:
Hi Ton,
Taking a look at the script setupmsxml42, I see that this is handled internally by a plug-in. The plug-in itself ought to be executing an MSI file, so it should be possible to capture its output.
The easiest way would be to actually copy the MSI file from the plug-in folder to your test machine, run it there directly, and see what error you get.
If you want all end-user setups to automatically show a descriptive error, just change the setupmsxml42 script to run the MSI file directly using (Un)Install MSI Setup, this way you can capture the error message and display it in full detail. If you want to see another example script that shows how to do this, add the Crystal Reports runtime to your project, and review the script setupcrystal - the error code is captured into the variable $CRYSTALERR$.
Taking a look at the script setupmsxml42, I see that this is handled internally by a plug-in. The plug-in itself ought to be executing an MSI file, so it should be possible to capture its output.
The easiest way would be to actually copy the MSI file from the plug-in folder to your test machine, run it there directly, and see what error you get.
If you want all end-user setups to automatically show a descriptive error, just change the setupmsxml42 script to run the MSI file directly using (Un)Install MSI Setup, this way you can capture the error message and display it in full detail. If you want to see another example script that shows how to do this, add the Crystal Reports runtime to your project, and review the script setupcrystal - the error code is captured into the variable $CRYSTALERR$.
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
Hi Michael,
Well, it seems i'm creating a rather unusual setup....
I've captured the error generated bij the XML-setup, using the procedure as you explained ((Un)Install MSI Setup)
And it seems the problem is the MSI30 update.
Let me explain:
My setup (this time an executable) first checks if Windows Installer has been installed. If not it will install it, no problem.
The Windows Installer asks for a reboot, but at this time I ignore that (I'll explain later)
After this I will push the XML-Parser setup, and get te following error:
This is probably caused by the setup of MSI30.
So It seems I really need a reboot in order to continue my setup, but here comes the starnge part of the story:
If I stop the setup at this point, and do NOT reboot my machine, then manually start the main setup again, XML-Parser will install with no problem.
It seems IA keeps the windows installer service in use ?
So, 2 questions:
1) Is there a way to fix this? and if not;
2) Is there a way, to "terminate" my installation an directly restart it?
The reason for this is, that after the installation is complete another reboot is requiered, so if you run the complete setup, as it is now, the user has to log on to his/her's machine 3 times !
1st before the install
2nd after the reboot triggered by MSI30
3rd after the completion of the main install.
Well, it seems i'm creating a rather unusual setup....

I've captured the error generated bij the XML-setup, using the procedure as you explained ((Un)Install MSI Setup)
And it seems the problem is the MSI30 update.
Let me explain:
My setup (this time an executable) first checks if Windows Installer has been installed. If not it will install it, no problem.
The Windows Installer asks for a reboot, but at this time I ignore that (I'll explain later)
After this I will push the XML-Parser setup, and get te following error:
Code: Select all
Cannot get access to the windows installer-service
This is probably caused by the setup of MSI30.
So It seems I really need a reboot in order to continue my setup, but here comes the starnge part of the story:
If I stop the setup at this point, and do NOT reboot my machine, then manually start the main setup again, XML-Parser will install with no problem.
It seems IA keeps the windows installer service in use ?
So, 2 questions:
1) Is there a way to fix this? and if not;
2) Is there a way, to "terminate" my installation an directly restart it?
The reason for this is, that after the installation is complete another reboot is requiered, so if you run the complete setup, as it is now, the user has to log on to his/her's machine 3 times !
1st before the install
2nd after the reboot triggered by MSI30
3rd after the completion of the main install.
Ton Blokhuizen
Tooling Engineer
BMA BV - Netherlands
[i]BMA: leading the way in obstetrical data management
http://www.bma-mosos.nl[/i]
Tooling Engineer
BMA BV - Netherlands
[i]BMA: leading the way in obstetrical data management
http://www.bma-mosos.nl[/i]
-
- Posts: 3452
- Joined: Thu Dec 22, 2005 7:17 pm
- Contact:
This is not InstallAware specific at all. I think what's going on is that Windows knows it needs to restart the system, but you can work around it in the way you tried. However, I still don't recommend you go ahead with this. You might be unknowingly corrupting Windows Installer or another aspect of the system. If your setup needs to reboot, let it reboot. Otherwise, no complaining when strange problems occur 

Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
Who is online
Users browsing this forum: No registered users and 15 guests