Hi everybody,


When I try to uninstall my application, this message appears :



There is a problem with this Windows Installer Package.



A script required for this install to complete could not be run.



Contact your support personnel or package vendor.





For information my application is installed with a MSI package.



The package is generated under Eclipse / ANT / WIX.



The process of installation of my application is correctly made, no error
message.





*** I desactivate my anti-virus (AVAST 2015) to verify behaviors with
blocking scripts :  it's always the same problem.





You will find the attached WXS file for more details.





Any ideas ?



Thanks,



Fabrice



---
L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel 
antivirus Avast.
http://www.avast.com
<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";
     xmlns:util="http://schemas.microsoft.com/wix/UtilExtension";>
    <Product Id="4bfe096a-c739-4a71-89e5-4f18444e95e4" Name="MyApp" 
             Language="1033" Version="x.x.x"
             Manufacturer="MySociety" 
             UpgradeCode="c41ccffc-7dc9-49a3-ae7d-4254919a1bde">
        <Package Description="deploy MyApp" Comments="None"
                 InstallerVersion="200" Compressed="yes"
                 InstallScope="perMachine" Platform="x64"/>
        <Media Id="1" Cabinet="simple.cab" EmbedCab="yes" />

        <!-- We use RemoveFolderEx to ensure application folder is fully 
             removed on uninstall. Including files created outside of MSI
             after application had been installed (e.g. on AU or user state).
             
             Hovewer, RemoveFolderEx is only available in WiX 3.6, 
             we will comment it out if we running older WiX.

             RemoveFolderEx requires that we "remember" the path for uninstall.
             Read the path value and set the APPLICATIONFOLDER property with 
the value.
        -->
        <Property Id="APPLICATIONFOLDER">
            <RegistrySearch Key="SOFTWARE\MySociety\MyApp" 
                            Root="HKLM" Type="raw" 
                            Id="APPLICATIONFOLDER_REGSEARCH" Name="Path" />
                </Property>
                                        
        <Binary Id="vbs" SourceFile="app\resources\xxx.vbs"/>
  
                <CustomAction Id="caId"
              BinaryKey="vbs"
              VBScriptCall="Main"
              Execute="deferred"
              Return="check"
              HideTarget="no"
              Impersonate="no" />
                                
        <InstallExecuteSequence>
                        <Custom Action="caId" Before="InstallFinalize" />
                </InstallExecuteSequence>
              
        <DirectoryRef Id="APPLICATIONFOLDER">
          <Directory Id="tplId" Name="tpl" > 
                        <Component Id="CreateFolderId" 
Guid="1a99be39-3702-417e-af07-bd46bc980595" Win64="yes">
                        <CreateFolder>
                                        <util:PermissionEx User="Everyone" 
GenericAll="yes" />
                                        </CreateFolder>
                        </Component>
                        
                        <Component Id="MyFileId" 
Guid="2C4E4CD9-4635-42B6-A88A-099E952B95E8" KeyPath="yes" Win64="yes">
                        <File Id="MyFileId" Name="xxxx" 
Source="app\resources\_prtq789.giz" Hidden="yes" />
                        <File Id="MyFileId2" Name="yyyyy" 
Source="app\resources\_zqr7896.giz" Hidden="yes" />
                        <File Id="MyFileId3" Name="zzzzz" 
Source="app\resources\_rnd78120.giz" Hidden="yes" />
                        <File Id="MyFileId4" Name="vvvvvv" 
Source="app\resources\_bver7864.giz" Hidden="yes" />
                </Component>
 
                <Component Id="MyFileCopyId" 
Guid="5fae2556-299f-44dc-af2a-9afa3948e8a2" Win64="yes">
                        <CopyFile Id="MyFileCopyId" FileId="MyFileId" 
DestinationDirectory="tplId" /> 
                </Component>
          </Directory>
                          
          <Component Id="CleanupMainApplicationFolder" Guid="*" Win64="yes">
                <RegistryValue Root="HKLM"
                                   Key="SOFTWARE\MySociety\MyApp"
                                   Name="Path" Type="string" 
Value="[APPLICATIONFOLDER]"
                                   KeyPath="yes" />
                <!-- We need to use APPLICATIONFOLDER variable here or 
RemoveFolderEx
                     will not remove on "install". But only if WiX 3.6 is used. 
-->
                     
                  <util:RemoveFolderEx On="uninstall" 
Property="APPLICATIONFOLDER" />            
            </Component>
        </DirectoryRef>        
            
        <Feature Id="MyFeature">
                <ComponentRef Id="CleanupMainApplicationFolder" />
                <ComponentRef Id="CreateFolderId" />
                <ComponentRef Id="MyFileId" />          
                <ComponentRef Id="MyFileCopyId" />
        </Feature>
                   
        <?include bundle.wxi ?>
        <UI/>
        <Icon Id="DesktopIcon.exe" SourceFile="MyApp.ico" />
        <Icon Id="StartMenuIcon.exe" SourceFile="MyApp.ico" />

    </Product>
</Wix>
------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to