You must Sign In to post a response.
  • Category: .NET

    Wix installer issue for uninstalling windows prodict

    ?Hi,

    We have old applictaion in windows and new applictaion in WPF. Requirement is to uninstall the windows product and install the WPF one.

    I am using custom action to call the batch file which calls the uninstall command.
    wmic product where name="ClientDiagnostics" call uninstall /nointeractive
    exit /B

    <CustomAction Id="UninstallOldExe"
    ExeCommand="[INSTALLFOLDER]Resources\Uninstaller.bat"
    Directory="INSTALLFOLDER"
    Execute='deferred'
    Impersonate='no'
    Return="asyncNoWait"/>

    <Custom Action="UninstallOldExe" After="InstallFiles"><![CDATA[$FilesComponent>2]]></Custom>?

    Everything is working fine but the Desktop shortcut and application menu is not getting removed.

    If i just run the command every works as expected. Only through wix setup i have an issue.

    Can you please help.

    Thanks,
  • #767967
    Hi Asma,
    There might be couple of reason for it.
    If you using <remove Folder tag> Check whether you are removing with proper ID.

    Example:

    <Directory Id="ProgramMenuFolder">
    <Directory Id="ProgramMenuSubfolder" Name="Kiosk">
    <Component Id="ApplicationShortcuts" Guid="12345678-1234-1234-1234-333333333333">
    <Shortcut Id="ApplicationShortcut1" Name="Kiosk" Description="Solusoft Product" Target="[INSTALLDIR]AMP\1.0.0.0\mpkiosk.exe" WorkingDirectory="INSTALLDIR"/>
    <RegistryValue Root="HKCU" Key="Software\Kiosk" Name="installed" Type="integer" Value="1" KeyPath="yes"/>
    <RemoveFolder Id="ProgramMenuSubfolder" On="uninstall"/> // This is Shortcut Icon Remover
    </Component>
    </Directory>
    </Directory>


    There is also another reason for this is GUID.
    If you specify GUID as "*" it wont remove the Shortcuts.
    Specify like below,


    Guid="cc507ab3-c2g2-462f-8c72-7c2e2017773c"

    Thanks,
    Mani

  • #767969
    Hi Mani,

    Thanks for your reply :)

    Shortcuts from Old application is not getting removed.
    We cannot handle old application shortcuts with current remove folder tag.

    I am missing any parameter to uninstall completely.

    Thanks,
    Asma

  • #767970
    Thank you for the hint on GUID.
    I had messed up with GUIDs

    Thanks,
    Asma


Sign In to post your comments