Re: [WiX-users] Rollback Custom Action during Upgrade

2009-05-13 Thread Richard
In article <1242193011087-2879162.p...@n2.nabble.com>, achandrapano writes: > What should I look for in the log file? Call MsiProcessMessage immediately from your rollback CA to write something into the log to confirm that your CA was indeed called. > effect. Is there any way to test a ro

Re: [WiX-users] Rollback Custom Action during Upgrade

2009-05-12 Thread achandrapano
What should I look for in the log file? From what I pasted above, I do see that my rollback CA is getting called, so that would mean my patch is in effect. Is there any way to test a rollback CA execution? Like maybe instead of calling a binary file or DLL file, to just pop up a box? Richard-45

Re: [WiX-users] Rollback Custom Action during Upgrade

2009-05-12 Thread Richard
In article <1242189374607-2878976.p...@n2.nabble.com>, achandrapano writes: > Well the MsgBox works for the first rollback action that occurs in the new > msi. For the old msi, the message box doesnt show AND I also log driver info > to a file and that file wasn't updated either, meaning th

Re: [WiX-users] Rollback Custom Action during Upgrade

2009-05-12 Thread achandrapano
Well the MsgBox works for the first rollback action that occurs in the new msi. For the old msi, the message box doesnt show AND I also log driver info to a file and that file wasn't updated either, meaning the binary action isn't really happening even though the MSI log says it did. Any thoughts?

Re: [WiX-users] Rollback Custom Action during Upgrade

2009-05-12 Thread Richard
In article <1242174267154-2877231.p...@n2.nabble.com>, achandrapano writes: > So it looks like all the 3 conditions are evaluating to true, but nothing > happens. Is there any way to debug what the error really is? The Msi log > shows nothing to help me besides those two lines above, then i

Re: [WiX-users] Rollback Custom Action during Upgrade

2009-05-12 Thread achandrapano
The rollback CA appears in #3 (during the rollback execution of the script) since I see the following in the log file: Rollback: RollbackDriverManagerReinstall MSI (s) (F0:18) [17:03:27:438]: Executing op: ActionStart(Name=RollbackDriverManagerReinstall,,) MSI (s) (F0:18) [17:03:27:438]: Executin

Re: [WiX-users] Rollback Custom Action during Upgrade

2009-05-12 Thread Richard
In article <1242169753994-2875388.p...@n2.nabble.com>, achandrapano writes: > So I added a rollback action to the old msi to reinstall my drivers right > before "RemoveFiles". When I launched the new msi to upgrade, the rollback > action never executed but the log file tells me it did. I am

Re: [WiX-users] Rollback Custom Action during Upgrade

2009-05-12 Thread achandrapano
So I added a rollback action to the old msi to reinstall my drivers right before "RemoveFiles". When I launched the new msi to upgrade, the rollback action never executed but the log file tells me it did. I am sort of confused by MSI log files. There are so many different calls to my rollback acti

Re: [WiX-users] Rollback Custom Action during Upgrade

2009-05-12 Thread Richard
In article <1242164147122-2873091.p...@n2.nabble.com>, achandrapano writes: > Yeah I saw that, but was hoping there was some kind of hack. Trust me, the *LAST* thing you want to be doing in your software installations, upgrades and rollback handling is "some kind of hack". In this particu

Re: [WiX-users] Rollback Custom Action during Upgrade

2009-05-12 Thread achandrapano
Yeah I saw that, but was hoping there was some kind of hack. I read somewhere that it is possible to access the old msi's actions in the new msi, but maybe that was not true. Thanks though Richard for the help. Richard-45 wrote: > > > In article <1242150015129-2870660.p...@n2.nabble.com>, >

Re: [WiX-users] Rollback Custom Action during Upgrade

2009-05-12 Thread Richard
In article <1242150015129-2870660.p...@n2.nabble.com>, achandrapano writes: > > But from the new msi you do have access to the REP action which should call > the old msi's uninstaller. Why can't I put a rollback CA right before this? See the documentation on RemoveExistingProducts. If yo

Re: [WiX-users] Rollback Custom Action during Upgrade

2009-05-12 Thread achandrapano
But from the new msi you do have access to the REP action which should call the old msi's uninstaller. Why can't I put a rollback CA right before this? I know I can if REP is after InstallFinalize, but then the remove/install order gets screwed up. If REP happens in the beginning, why can't I plac

Re: [WiX-users] Rollback Custom Action during Upgrade

2009-05-12 Thread Richard
In article <54eeb3a30905120956p79b48ea7ka564c640e57be...@mail.gmail.com>, Tim Haloun writes: > I have a simple related question. I am trying to test the execution of my > rollback custom action. I had thought that returning ERROR_INSTALL_FAILURE > from a type 1 CA with return="Check" woul

Re: [WiX-users] Rollback Custom Action during Upgrade

2009-05-12 Thread Richard
In article <1242101191107-2867127.p...@n2.nabble.com>, achandrapano writes: > Yes I see your point, but is there no way to do everything from the new MSI? Nope. All you have access to in the new MSI is the new version. Everything that happens in the old version is controlled by the old MS

Re: [WiX-users] Rollback Custom Action during Upgrade

2009-05-12 Thread Tim Haloun
I have a simple related question. I am trying to test the execution of my rollback custom action. I had thought that returning ERROR_INSTALL_FAILURE from a type 1 CA with return="Check" would do the trick. What I see though is that further actions are skipped, the msi returns code 1603, and the

Re: [WiX-users] Rollback Custom Action during Upgrade

2009-05-11 Thread achandrapano
Yes I see your point, but is there no way to do everything from the new MSI? >From the new MSI, I can't get access to the rollback of the older MSI? The only way I got this working was to put REP after InstallFinalize, which kinda ruins the order of everything. Richard-45 wrote: > > > In artic

Re: [WiX-users] Rollback Custom Action during Upgrade

2009-05-11 Thread Richard
In article <1242087148392-2866280.p...@n2.nabble.com>, achandrapano writes: > REP is right after InstallInitialize. I can't put this Rollback action in the > older MSI. Why not? You can patch the old MSI so that when the uninstall rolls back, it reinstalls the driver. This will be done a

Re: [WiX-users] Rollback Custom Action during Upgrade

2009-05-11 Thread achandrapano
I moved REP to After InstallFinalize and now it seems I can execute my rollback action before Remove Files. However I need the REP to be After InstallInitialize . Is there any way to make the rollback action work before RemoveFiles while keeping REP After InstallInitialize? achandrapano wrote: >

Re: [WiX-users] Rollback Custom Action during Upgrade

2009-05-11 Thread achandrapano
REP is right after InstallInitialize. I can't put this Rollback action in the older MSI. Here is the reason why. I am installing drivers using custom actions. When installing the newer version as part of the upgrade, say something goes wrong with the driver installation. At this point a rollback i

Re: [WiX-users] Rollback Custom Action during Upgrade

2009-05-11 Thread Richard
In article <048288cf0239f24a8c2299e69f020b0501293...@exchange.panologic.com>, "Ashwin Chandra" writes: > I am trying to perform a rollback custom action when an upgrade install > fails. However, I require the original files on the system (before the > installer updates them) to execute this

[WiX-users] Rollback Custom Action during Upgrade

2009-05-11 Thread Ashwin Chandra
Hello, I am trying to perform a rollback custom action when an upgrade install fails. However, I require the original files on the system (before the installer updates them) to execute this rollback custom action. I put my RCA before InstallFiles (so when rollback initiates, it will rollback the f