Hi Simon,

Thanks alot! I changed the Type on the RegistrySearch to 'file' and now WiX
is launching the Firebird Uninstaller correctly! :-)

Regards,
Imri

On Tue, May 4, 2010 at 8:32 AM, Simon Ledergerber [via Windows Installer XML
(WiX) toolset] 
<[email protected]<ml-node%[email protected]>
> wrote:

> I just realized this question should be sent to Wix-users, not to Wix-devs.
>
> Sorry.
>
> Simon
>
> -------- Original-Nachricht --------
> Datum: Tue, 04 May 2010 08:19:20 +0200
> Von: "Simon Ledergerber" <[hidden 
> email]<http://user/SendEmail.jtp?type=node&node=5001947&i=0>
> >
> An: Windows Installer XML toolset developer mailing list <[hidden 
> email]<http://user/SendEmail.jtp?type=node&node=5001947&i=1>
> >
>
> Betreff: Re: [WiX-devs] Removing "" from UninstallString
>
> Hi Imri
>
> I understand you want to use the Custom Action Type 50 to specify the path
> to the executable using a property reference and then give some command line
> args.
>
> If you edited the Custom Action table directly, you would need to insert a
> record in the following way:
>
> Action: FirebirdUninstallAction
> Type: 50 (+ additional flags)
> Source: FBV1EXISTS (property with the fully qualified path to the
> executable)
> Target: /SILENT (command line arguments separately)
>
> This would translate in Wix into:
> <CustomAction Id='FirebirdUninstallAction' Property='FBV1EXISTS'
> ExeCommand='/SILENT' Execute='immediate' Return='check'
>
> HideTarget='no' Impersonate='no'></CustomAction>
>
> If you really need to remove the leading and trailing quotes, you probably
> need to code another Custom Action to format the property accordingly since
> Windows Installer has no builtin operation for this. Also consider using the
> 'directory' or 'file' type instead of 'raw' on the RegistrySearch element
> (-> RegLocator table), then Windows Installer should be able to interpret it
> as file path. (I'm not clear yet about the details how to implement it using
> Wix ...)
>
> Hope this helps you further.
>
> Regards
>
> Simon
>
> -------- Original-Nachricht --------
> Datum: Mon, 3 May 2010 08:23:22 -0700 (PDT)
> Von: SimpleFaith 
> <i...@...><http://service.gmx.net/de/cgi/g.fcgi/mail/new?CUSTOMERNO=6575495&t=de170358244.1272954595.ff81894f&to=%26lt%3Bimri%40spacialaudio.com>
> An: 
> wix-d...@...<http://service.gmx.net/de/cgi/g.fcgi/mail/new?CUSTOMERNO=6575495&t=de170358244.1272954595.ff81894f&to=wix-devs%40lists.sourceforge.net>
>
> Betreff: [WiX-devs] Removing "" from UninstallString
>
>
> Hi,
>
> During my Installer's Installation process I do a RegistrySearch to detect
> if Firebird v1.x is installed on the client machine. If it is i want to use
> the UninstallString value to uninstall Firebird. I use the following
> Property and CustomAction to accomplish it:
>
> <Property Id="FBV1EXISTS">
> <RegistrySearch Id="FirebirdV1" Type="raw" Root="HKLM"
>
> Key="SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\FBDBServer_1_5_is1"
> Name="UninstallString"></RegistrySearch>
> </Property>
>
> <CustomAction Id='FirebirdUninstallAction' Property='FBV1EXISTS'
> ExeCommand='[FBV1EXISTS] /SILENT' Execute='immediate' Return='check'
> HideTarget='no' Impersonate='no'></CustomAction>
>
> In the InstallExecuteSequence i call my CustomAction
> <InstallExecuteSequence>
> <Custom Action="FirebirdUninstallAction"
> After="InstallFinalize">FBV1EXISTS</Custom>
> </InstallExecuteSequence>
>
> Now the problem is that the UninstallString for Firebird is saved as
> "C:\Program Files\Firebird\Firebird_1_5\unins000.exe" (the "" included)
> which causes the following error:
>
> Error 1721. There is a problem with this Windows Installer package. A
> program required for this install to complete could not be run. Contact
> your
> support personnel or package vendor. Action: FirebirdUninstallAction,
> location: "C:\Program Files\Firebird\Firebird_1_5\unins000.exe", command:
> "C:\Program Files\Firebird\Firebird_1_5\unins000.exe" /SILENT
>
> Is there any way to format the UninstallString so that I can remove the ""
> ?
>
> Thx,
> Imri
> --
> View this message in context:
> http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Removing-from-UninstallString-tp4998365p4998365.html
> Sent from the wix-devs mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> WiX-devs mailing list
> [hidden email] <http://user/SendEmail.jtp?type=node&node=5001947&i=2>
>
> https://lists.sourceforge.net/lists/listinfo/wix-devs
>
>
>
>
> --
> GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
> Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
>
>
>
> --
> GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
> Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
>
> ------------------------------------------------------------------------------
>
>
> _______________________________________________
> WiX-devs mailing list
> [hidden email] <http://user/SendEmail.jtp?type=node&node=5001947&i=3>
> https://lists.sourceforge.net/lists/listinfo/wix-devs
>
> ------------------------------------------------------------------------------
>
>
> _______________________________________________
> WiX-devs mailing list
> [hidden email] <http://user/SendEmail.jtp?type=node&node=5001947&i=4>
> https://lists.sourceforge.net/lists/listinfo/wix-devs
>
>
> ------------------------------
>  View message @
> http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Removing-from-UninstallString-tp4998365p5001947.html
> To unsubscribe from Removing "" from UninstallString, click 
> here<http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/subscriptions/Unsubscribe.jtp?code=aW1yaUBzcGFjaWFsYXVkaW8uY29tfDQ5OTgzNjV8LTgzMzA1MTU4NQ==>.
>
>
>

-- 
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Removing-from-UninstallString-tp4998365p5002389.html
Sent from the wix-devs mailing list archive at Nabble.com.
------------------------------------------------------------------------------
_______________________________________________
WiX-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-devs

Reply via email to