It could have been so easy: <Publish Event="Remove" Value="All">1</Publish>
Same for every other mode.
From: Daniel Janz
Sent: Dienstag, 15. Januar 2008 18:48
To: Daniel Janz; 'WiX-users@lists.sourceforge.net'
Subject: RE: [WiX-users] Maintenance mode broken
Now I'm able to set this property. This is what the log says:
Aktion 18:24:12: SET_INSTALLMODE.
Aktion gestartet um 18:24:12: SET_INSTALLMODE.
MSI (c) (B4:04) [18:24:12:287]: PROPERTY CHANGE: Adding REMOVE property. Its
value is 'All'.
Aktion beendet um 18:24:12: SET_INSTALLMODE. Rückgabewert 1.
MSI (c) (B4:04) [18:24:12:287]: Doing action: ProgressDialog
Then it looks like it's rolling back the installation (but unfortunately only
at the first look):
Aktion beendet um 18:24:12: InstallInitialize. Rückgabewert 1.
MSI (s) (18:F4) [18:24:12:662]: Doing action: ProcessComponents
Aktion 18:24:12: ProcessComponents. Registrierung der Komponente(n) wird
aktualisiert
Aktion gestartet um 18:24:12: ProcessComponents.
Aktion 18:24:12: GenerateScript. Skriptoperationen werden generiert für Aktion:
GenerateScript: Registrierung der Komponente(n) wird aktualisiert
Aktion beendet um 18:24:12: ProcessComponents. Rückgabewert 1.
MSI (s) (18:F4) [18:24:12:662]: Doing action: UnpublishFeatures
Aktion 18:24:12: UnpublishFeatures. Veröffentlichung von Produktfunktionen wird
rückgängig gemacht
Aktion gestartet um 18:24:12: UnpublishFeatures.
Aktion beendet um 18:24:12: UnpublishFeatures. Rückgabewert 1.
MSI (s) (18:F4) [18:24:12:678]: Doing action: RemoveRegistryValues
Aktion 18:24:12: RemoveRegistryValues. Werte werden aus der Systemregistrierung
entfernt
Aktion gestartet um 18:24:12: RemoveRegistryValues.
Aktion beendet um 18:24:12: RemoveRegistryValues. Rückgabewert 1.
MSI (s) (18:F4) [18:24:12:678]: Doing action: RemoveShortcuts
Aktion 18:24:12: RemoveShortcuts. Verknüpfungen werden entfernt
Aktion gestartet um 18:24:12: RemoveShortcuts.
Aktion beendet um 18:24:12: RemoveShortcuts. Rückgabewert 1.
MSI (s) (18:F4) [18:24:12:678]: Doing action: RemoveFiles
Aktion 18:24:12: RemoveFiles. Dateien werden entfernt
Aktion gestartet um 18:24:12: RemoveFiles.
MSI (s) (18:F4) [18:24:12:678]: Note: 1: 2205 2: 3: RemoveFile
MSI (s) (18:F4) [18:24:12:678]: Note: 1: 2205 2: 3: RemoveFile
Aktion beendet um 18:24:12: RemoveFiles. Rückgabewert 0.
And then this (looks like it's reinstalling everything):
MSI (s) (18:F4) [18:24:12:678]: Doing action: InstallFiles
Aktion 18:24:12: InstallFiles. Neue Dateien werden kopiert
Aktion gestartet um 18:24:12: InstallFiles.
MSI (s) (18:F4) [18:24:12:678]: Note: 1: 2205 2: 3: Patch
MSI (s) (18:F4) [18:24:12:678]: Note: 1: 2228 2: 3: Patch 4: SELECT
`Patch`.`File_`, `Patch`.`Header`, `Patch`.`Attributes`, `Patch`.`Sequence`,
`Patch`.`StreamRef_` FROM `Patch` WHERE `Patch`.`File_` = ? AND
`Patch`.`#_MsiActive`=? ORDER BY `Patch`.`Sequence`
MSI (s) (18:F4) [18:24:12:678]: Note: 1: 2205 2: 3: MsiSFCBypass
MSI (s) (18:F4) [18:24:12:678]: Note: 1: 2228 2: 3: MsiSFCBypass 4: SELECT
`File_` FROM `MsiSFCBypass` WHERE `File_` = ?
MSI (s) (18:F4) [18:24:12:678]: Note: 1: 2205 2: 3: MsiPatchHeaders
MSI (s) (18:F4) [18:24:12:678]: Note: 1: 2228 2: 3: MsiPatchHeaders 4: SELECT
`Header` FROM `MsiPatchHeaders` WHERE `StreamRef` = ?
InstallFiles: Datei: Neue Dateien werden kopiert, Ordner: , Größe:
Aktion beendet um 18:24:12: InstallFiles. Rückgabewert 1.
MSI (s) (18:F4) [18:24:12:678]: Doing action: SchedXmlFile
Aktion 18:24:12: SchedXmlFile.
Aktion gestartet um 18:24:12: SchedXmlFile.
MSI (s) (18:30) [18:24:12:694]: Invoking remote custom action. DLL:
C:\WINDOWS\Installer\MSI169.tmp, Entrypoint: SchedXmlFile
MSI (s) (18:2C) [18:24:12:694]: Generating random cookie.
MSI (s) (18:2C) [18:24:12:694]: Created Custom Action Server with PID 3188
(0xC74).
MSI (s) (18:EC) [18:24:12:709]: Running as a service.
MSI (s) (18:EC) [18:24:12:709]: Hello, I'm your 32bit Impersonated custom
action server.
Aktion beendet um 18:24:12: SchedXmlFile. Rückgabewert 1.
MSI (s) (18:F4) [18:24:12:725]: Doing action: ConfigureSql
Aktion 18:24:12: ConfigureSql. Configuring SQL Server
Aktion gestartet um 18:24:12: ConfigureSql.
MSI (s) (18:40) [18:24:12:740]: Invoking remote custom action. DLL:
C:\WINDOWS\Installer\MSI16A.tmp, Entrypoint: ConfigureSql
ConfigureSql: Skipping ScaSqlStrsRead() - SqlString and/or SqlDatabase table
not present
Aktion beendet um 18:24:12: ConfigureSql. Rückgabewert 1.
MSI (s) (18:F4) [18:24:12:756]: Doing action: CreateShortcuts
Aktion 18:24:12: CreateShortcuts. Verknüpfungen werden erstellt
Aktion gestartet um 18:24:12: CreateShortcuts.
Aktion beendet um 18:24:12: CreateShortcuts. Rückgabewert 1.
MSI (s) (18:F4) [18:24:12:756]: Doing action: WriteRegistryValues
Aktion 18:24:12: WriteRegistryValues. Werte werden in die Systemregistrierung
geschrieben
Aktion gestartet um 18:24:12: WriteRegistryValues.
Aktion beendet um 18:24:12: WriteRegistryValues. Rückgabewert 1.
MSI (s) (18:F4) [18:24:12:756]: Doing action: RegisterUser
Aktion 18:24:12: RegisterUser. Benutzer wird registriert
Aktion gestartet um 18:24:12: RegisterUser.
Aktion beendet um 18:24:12: RegisterUser. Rückgabewert 0.
MSI (s) (18:F4) [18:24:12:756]: Doing action: RegisterProduct
Aktion 18:24:12: RegisterProduct. Produkt wird registriert
Aktion gestartet um 18:24:12: RegisterProduct.
RegisterProduct: Produkt wird registriert
Aktion beendet um 18:24:12: RegisterProduct. Rückgabewert 1.
MSI (s) (18:F4) [18:24:12:756]: Doing action: PublishFeatures
Aktion 18:24:12: PublishFeatures. Produktfunktionen werden veröffentlicht
Aktion gestartet um 18:24:12: PublishFeatures.
Aktion beendet um 18:24:12: PublishFeatures. Rückgabewert 1.
MSI (s) (18:F4) [18:24:12:756]: Doing action: PublishProduct
Aktion 18:24:12: PublishProduct. Produktinformation wird veröffentlicht
What can I do to remove the installed program with a button from within the UI?
Any advice is welcome :-) I think I get bogged down.
From: Daniel Janz
Sent: Dienstag, 15. Januar 2008 18:06
To: Daniel Janz; 'WiX-users@lists.sourceforge.net'
Subject: RE: [WiX-users] Maintenance mode broken
Hmm.. I think these Properties are the right approach but how can I set them? I
enabled the verbose logging and found out that if I uninstall my application
using the "Add or Remove Programs" tool the REMOVE-property is set to "All"
with a command line parameter:
MSI (s) (B8:78) [17:50:08:501]: Command Line: REMOVE=ALL
CURRENTDIRECTORY=C:\Documents and Settings\djanz CLIENTUILEVEL=2
CLIENTPROCESSID=1200
MSI (s) (B8:78) [17:50:08:501]: PROPERTY CHANGE: Adding REMOVE property. Its
value is 'ALL'.
But if I try to set it manually (either to the comma separated list of features
what is suggested by the MSDN or to 'All') nothing happens. Here are the two
ways I tried to use:
1. Event: <Publish Property="REMOVE" Value="All" />
2. CustomAction: <CustomAction Id="SET_INSTALLMODE" Property="REMOVE"
Value="[InstallMode]" Execute="firstSequence" />
But none of them works. For the CustomAction I get at least an log entry:
MSI (c) (B0:84) [17:45:06:817]: Doing action: SET_INSTALLMODE
Aktion 17:45:06: SET_INSTALLMODE.
Aktion gestartet um 17:45:06: SET_INSTALLMODE.
Aktion beendet um 17:45:06: SET_INSTALLMODE. Rückgabewert 1.
After this I would at least expect an entry of the PROPERTY CHANGE -Type.
Any suggestions?
From: Daniel Janz
Sent: Dienstag, 15. Januar 2008 16:37
To: Daniel Janz; WiX-users@lists.sourceforge.net
Subject: RE: [WiX-users] Maintenance mode broken
It seems that I've found a way to fix my installer:
http://msdn2.microsoft.com/en-us/library/aa371194(VS.85).aspx
http://msdn2.microsoft.com/en-us/library/aa371175(VS.85).aspx
http://msdn2.microsoft.com/en-us/library/aa371182(VS.85).aspx
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Daniel Janz
Sent: Dienstag, 15. Januar 2008 15:38
To: WiX-users@lists.sourceforge.net
Subject: [WiX-users] Maintenance mode broken
Hi,
I'm just trying to create a maintenance mode for my installer but I ran into
some problems.
In my first installer I used a precompiled WixUI (mondo) and it provided the
maintenance mode automatically (worked fine), but now I have made some database
related changes (a few dialogs which ask for information) in this mode and
broke it.
Symptoms are that everything themes to work well but the "Repair" and
"Uninstall" (I removed "Change") modes don't do anything at all.
What's about the "InstallMode"-Property? I found something at this page:
http://www.tarma.com/support/tin3/0100-using/0035-symbols/0200-variables/installmode.htm
(It also creates .msi files hence I found it could be relevant). Currently I'm
using it to tell the installer what he should do in the maintenance mode.
Also I found something in this list:
http://www.nabble.com/InstallMode-Conditions-DON'T-work!-td14487073.html which
was also not very helpful for me.
If there is actually a property which could help me to solve this how it's
called?
If there isn't one what's the best way to tell the installer for instance to
remove the program instead of simply doing nothing.
Thanks in advance
EURO-LOG AG
Entwicklung
i. A. Daniel Janz
Am Söldnermoos 17
85399 Hallbergmoos-München
T +49 811 9595-137
F +49 811 9595-199
M +49 170 760 24 80
www.eurolog.com <http://www.eurolog.com/>
Vorstand: Jörg Fürbacher
Aufsichtsratsvorsitzender: Dr. Kai Altemann
Registergericht: AG München HRB 140857
Steuer-Nr.: 115/118/10169
Ust-ID-Nr.: DE 811547361
Diese E-Mail könnte vertrauliche und/oder rechtlich geschützte Informationen
enthalten. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail
irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und
vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte
Weitergabe dieser Mail sind nicht gestattet.
This e-mail may contain confidential and/or privileged information. If you are
not the intended recipient (or have received this e-mail in error) please
notify the sender immediately and destroy this e-mail. Any unauthorized
copying, disclosure or distribution of the material in this e-mail is strictly
forbidden
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users