Hello,
I have made an MSI, to create a 'Standard TCP/IP port' for a printer.
Custom Actions, install the printer. This works fine !
BUT: Sometimes, when I UNINSTALL, I still see the registry keys in the registry !
Why aren't they removed ? According to the eventviewer, the application is successfully uninstalled !
Can I see (e.g. through logging) what happens during this uninstall ?
Note: below, the contents of the AIP file:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<DOCUMENT type="Advanced Installer" CreateVersion="6.3" version="6.3" modules="professional" RootPath="." Language="en">
<COMPONENT cid="caphyon.advinst.msicomp.MsiPropsComponent">
<ROW Property="ALLUSERS" Value="2" MultiBuildValue="DefaultBuild:1"/>
<ROW Property="ARPCOMMENTS" Value="This installer database contains the logic and data required to install [|ProductName]." ValueLocId="*"/>
<ROW Property="ARPNOMODIFY" MultiBuildValue="DefaultBuild:1"/>
<ROW Property="BannerBitmap" Value="AI_RES_default_banner.bmp" Type="1"/>
<ROW Property="DialogBitmap" Value="AI_RES_default_dialog.bmp" Type="1"/>
<ROW Property="LIMITUI" MultiBuildValue="DefaultBuild:1"/>
<ROW Property="Manufacturer" Value="Eska Graphic Board" ValueLocId="*"/>
<ROW Property="ProductCode" Value="1033:{E31F5F51-781C-4193-8858-837C24BBE8C6} "/>
<ROW Property="ProductLanguage" Value="1033"/>
<ROW Property="ProductName" Value="NL-SAP1-P013" ValueLocId="*"/>
<ROW Property="ProductVersion" Value="1.0.0"/>
<ROW Property="SecureCustomProperties" Value="OLDPRODUCTS;AI_NEWERPRODUCTFOUND"/>
<ROW Property="UpgradeCode" Value="{B69E9836-4B6C-443F-9792-E8939B14DE18}"/>
</COMPONENT>
<COMPONENT cid="caphyon.advinst.msicomp.MsiDirsComponent">
<ROW Directory="APPDIR" Directory_Parent="TARGETDIR" DefaultDir="APPDIR:." IsPseudoRoot="1"/>
<ROW Directory="TARGETDIR" DefaultDir="SourceDir"/>
</COMPONENT>
<COMPONENT cid="caphyon.advinst.msicomp.MsiCompsComponent">
<ROW Component="HWAddress" ComponentId="{CA7731DA-C1D0-4649-AF69-ADE2898D8064}" Directory_="APPDIR" Attributes="4" KeyPath="HWAddress"/>
<ROW Component="HostName" ComponentId="{052B0B70-4D96-4643-B33A-8B86C11E8689}" Directory_="APPDIR" Attributes="4" KeyPath="HostName"/>
<ROW Component="IPAddress" ComponentId="{0BB7E849-059A-43E2-9352-03A7BB3BD9DF}" Directory_="APPDIR" Attributes="4" KeyPath="IPAddress"/>
<ROW Component="PortNumber" ComponentId="{05249FCB-4647-4257-B404-5EA7088854B8}" Directory_="APPDIR" Attributes="4" KeyPath="PortNumber"/>
<ROW Component="Protocol" ComponentId="{0561898B-0C1B-4042-9BB1-AA3B7141A0B1}" Directory_="APPDIR" Attributes="4" KeyPath="Protocol"/>
<ROW Component="SNMP_Community" ComponentId="{EAC1DB94-5CED-4129-AD2A-1C7FD9BAA0E6}" Directory_="APPDIR" Attributes="4" KeyPath="SNMP_Community"/>
<ROW Component="SNMP_Enabled" ComponentId="{23E5A7FD-4FAB-47A0-A831-7E3A574952E0}" Directory_="APPDIR" Attributes="4" KeyPath="SNMP_Enabled"/>
<ROW Component="SNMP_Index" ComponentId="{AB1DCF5C-D22F-4A40-B4A6-60EC83C61497}" Directory_="APPDIR" Attributes="4" KeyPath="SNMP_Index"/>
<ROW Component="Version" ComponentId="{33FC3160-21C9-4547-BE8D-22DFAE253BC9}" Directory_="APPDIR" Attributes="4" KeyPath="Version"/>
</COMPONENT>
<COMPONENT cid="caphyon.advinst.msicomp.MsiFeatsComponent">
<ROW Feature="MainFeature" Title="MainFeature" Description="Description" Display="1" Level="1" Directory_="APPDIR" Attributes="0" Components="Protocol Version HostName IPAddress HWAddress PortNumber SNMP_Community SNMP_Enabled SNMP_Index"/>
<ATTRIBUTE name="CurrentFeature" value="MainFeature"/>
</COMPONENT>
<COMPONENT cid="caphyon.advinst.msicomp.BuildComponent">
<ROW BuildKey="DefaultBuild" BuildName="DefaultBuild" BuildOrder="1" BuildType="0" Languages="en" InstallationType="4"/>
<ATTRIBUTE name="CurrentBuild" value="DefaultBuild"/>
</COMPONENT>
<COMPONENT cid="caphyon.advinst.msicomp.DictionaryComponent">
<ROW Path="<AI_DICTS>ui.ail"/>
<ROW Path="<AI_DICTS>ui_en.ail"/>
</COMPONENT>
<COMPONENT cid="caphyon.advinst.msicomp.FragmentComponent">
<ROW Fragment="FolderDlg.aip" Path="<AI_FRAGS>FolderDlg.aip"/>
<ROW Fragment="StaticUIStrings.aip" Path="<AI_FRAGS>StaticUIStrings.aip"/>
<ROW Fragment="UI.aip" Path="<AI_FRAGS>UI.aip"/>
</COMPONENT>
<COMPONENT cid="caphyon.advinst.msicomp.MsiAppSearchComponent">
<ROW Property="RESULT_PROPERTY_RUNDLL32.EXE" Signature_="FileSearchSign"/>
<ROW Property="RESULT_PROPERTY_NET.EXE" Signature_="FileSearchSign_1"/>
<ROW Property="RESULT_PROPERTY_RUNDLL32.EXE" Signature_="FileSearchSign_10"/>
<ROW Property="RESULT_PROPERTY_NET.EXE" Signature_="FileSearchSign_11"/>
<ROW Property="RESULT_PROPERTY_NET.EXE" Signature_="FileSearchSign_12"/>
<ROW Property="RESULT_PROPERTY_NET.EXE" Signature_="FileSearchSign_2"/>
<ROW Property="RESULT_PROPERTY_NET.EXE" Signature_="FileSearchSign_3"/>
<ROW Property="RESULT_PROPERTY_NET.EXE" Signature_="FileSearchSign_4"/>
<ROW Property="RESULT_PROPERTY_NET.EXE" Signature_="FileSearchSign_5"/>
<ROW Property="RESULT_PROPERTY_NET.EXE" Signature_="FileSearchSign_6"/>
<ROW Property="RESULT_PROPERTY_NET.EXE" Signature_="FileSearchSign_7"/>
<ROW Property="RESULT_PROPERTY_RUNDLL32.EXE" Signature_="FileSearchSign_8"/>
<ROW Property="RESULT_PROPERTY_RUNDLL32.EXE" Signature_="FileSearchSign_9"/>
</COMPONENT>
<COMPONENT cid="caphyon.advinst.msicomp.MsiBinaryComponent">
<ROW Name="AI_CUSTACTS_aicustact.dll" SourcePath="<AI_CUSTACTS>aicustact.dll"/>
<ROW Name="AI_RES_default_banner.bmp" SourcePath="<AI_RES>default-banner.bmp"/>
<ROW Name="AI_RES_default_dialog.bmp" SourcePath="<AI_RES>default-dialog.bmp"/>
</COMPONENT>
<COMPONENT cid="caphyon.advinst.msicomp.MsiControlComponent">
<ATTRIBUTE name="FixedSizeBitmaps" value="0"/>
</COMPONENT>
<COMPONENT cid="caphyon.advinst.msicomp.MsiControlEventComponent">
<ROW Dialog_="FolderDlg" Control_="Back" Event="NewDialog" Argument="WelcomeDlg" Condition="AI_INSTALL" Ordering="1"/>
<ROW Dialog_="WelcomeDlg" Control_="Next" Event="NewDialog" Argument="FolderDlg" Condition="AI_INSTALL" Ordering="1"/>
<ROW Dialog_="VerifyReadyDlg" Control_="Back" Event="NewDialog" Argument="FolderDlg" Condition="AI_INSTALL" Ordering="1"/>
<ROW Dialog_="FolderDlg" Control_="Next" Event="NewDialog" Argument="VerifyReadyDlg" Condition="AI_INSTALL" Ordering="3"/>
<ROW Dialog_="MaintenanceTypeDlg" Control_="Back" Event="NewDialog" Argument="MaintenanceWelcomeDlg" Condition="AI_MAINT" Ordering="1"/>
<ROW Dialog_="MaintenanceWelcomeDlg" Control_="Next" Event="NewDialog" Argument="MaintenanceTypeDlg" Condition="AI_MAINT" Ordering="2"/>
<ROW Dialog_="VerifyReadyDlg" Control_="Back" Event="NewDialog" Argument="PatchWelcomeDlg" Condition="AI_PATCH" Ordering="1"/>
<ROW Dialog_="PatchWelcomeDlg" Control_="Next" Event="NewDialog" Argument="VerifyReadyDlg" Condition="AI_PATCH" Ordering="3"/>
</COMPONENT>
<COMPONENT cid="caphyon.advinst.msicomp.MsiCustActComponent">
<ROW Action="AI_DOWNGRADE" Type="19" Target="4010"/>
<ROW Action="AI_PREPARE_UPGRADE" Type="65" Source="AI_CUSTACTS_aicustact.dll" Target="PrepareUpgrade"/>
<ROW Action="AI_RESTORE_LOCATION" Type="65" Source="AI_CUSTACTS_aicustact.dll" Target="RestoreLocation"/>
<ROW Action="AI_STORE_LOCATION" Type="51" Source="ARPINSTALLLOCATION" Target="[APPDIR]"/>
<ROW Action="Create_Printer" Type="1074" Source="RESULT_PROPERTY_RUNDLL32.EXE" Target="printui.dll,PrintUIEntry /if /b "nl-sap1-p013" /f "\\nl-sap1-m002\update\Printers\HP9040MFP\Win32_2000_XP_S2003\PCL6\hpc90xmc.inf" /r "nl-sap1-p013.board.local" /m "HP LaserJet 9040 mfp PCL 6" /z /u /q"/>
<ROW Action="Delete_Printer" Type="1074" Source="RESULT_PROPERTY_RUNDLL32.EXE" Target="printui.dll,PrintUIEntry /dl /n "nl-sap1-p013" /q"/>
<ROW Action="SET_APPDIR" Type="307" Source="APPDIR" Target="[ProgramFilesFolder][Manufacturer]\[ProductName]"/>
<ROW Action="SET_SHORTCUTDIR" Type="307" Source="SHORTCUTDIR" Target="[ProgramMenuFolder][ProductName]"/>
<ROW Action="SET_TARGETDIR_TO_APPDIR" Type="51" Source="TARGETDIR" Target="[APPDIR]"/>
<ROW Action="Start_Spooler" Type="1074" Source="RESULT_PROPERTY_NET.EXE" Target="start spooler"/>
<ROW Action="Start_Spooler0" Type="1074" Source="RESULT_PROPERTY_NET.EXE" Target="start spooler"/>
<ROW Action="Stop_Spooler" Type="1074" Source="RESULT_PROPERTY_NET.EXE" Target="stop spooler"/>
<ROW Action="Stop_Spooler0" Type="1074" Source="RESULT_PROPERTY_NET.EXE" Target="stop spooler"/>
</COMPONENT>
<COMPONENT cid="caphyon.advinst.msicomp.MsiDrLocatorComponent">
<ROW Signature_="FileSearchSign" Path="[SystemFolder]" Depth="0"/>
<ROW Signature_="FileSearchSign_1" Path="[SystemFolder]" Depth="0"/>
<ROW Signature_="FileSearchSign_2" Path="[SystemFolder]" Depth="0"/>
<ROW Signature_="FileSearchSign_3" Path="[SystemFolder]" Depth="0"/>
<ROW Signature_="FileSearchSign_4" Path="[SystemFolder]" Depth="0"/>
<ROW Signature_="FileSearchSign_5" Path="[SystemFolder]" Depth="1"/>
<ROW Signature_="FileSearchSign_6" Path="[SystemFolder]" Depth="0"/>
<ROW Signature_="FileSearchSign_7" Path="[SystemFolder]" Depth="0"/>
<ROW Signature_="FileSearchSign_8" Path="[SystemFolder]" Depth="0"/>
<ROW Signature_="FileSearchSign_9" Path="[SystemFolder]" Depth="0"/>
<ROW Signature_="FileSearchSign_10" Path="[SystemFolder]" Depth="0"/>
<ROW Signature_="FileSearchSign_11" Path="[SystemFolder]" Depth="0"/>
<ROW Signature_="FileSearchSign_12" Path="[SystemFolder]" Depth="0"/>
</COMPONENT>
<COMPONENT cid="caphyon.advinst.msicomp.MsiInstExSeqComponent">
<ROW Action="AI_DOWNGRADE" Condition="AI_NEWERPRODUCTFOUND AND (UILevel <> 5)" Sequence="210"/>
<ROW Action="AI_RESTORE_LOCATION" Condition="APPDIR=""" Sequence="740"/>
<ROW Action="AI_STORE_LOCATION" Condition="Not Installed" Sequence="1545"/>
<ROW Action="AI_PREPARE_UPGRADE" Condition="AI_UPGRADE="No" AND (Not Installed)" Sequence="1300"/>
<ROW Action="Stop_Spooler" Condition="NOT Installed" Sequence="5935"/>
<ROW Action="Start_Spooler" Condition="NOT Installed" Sequence="5936"/>
<ROW Action="Create_Printer" Condition="NOT Installed" Sequence="5937"/>
<ROW Action="Delete_Printer" Condition="REMOVE="ALL"" Sequence="1651"/>
<ROW Action="Stop_Spooler0" Condition="REMOVE="ALL"" Sequence="1652"/>
<ROW Action="Start_Spooler0" Condition="REMOVE="ALL"" Sequence="1653"/>
</COMPONENT>
<COMPONENT cid="caphyon.advinst.msicomp.MsiInstallUISequenceComponent">
<ROW Action="AI_RESTORE_LOCATION" Condition="APPDIR=""" Sequence="740"/>
</COMPONENT>
<COMPONENT cid="caphyon.advinst.msicomp.MsiRegsComponent">
<ROW Registry="HWAddress" Root="2" Key="SYSTEM\CurrentControlSet\Control\Print\Monitors\Standard TCP/IP Port\Ports\NL-SAP1-P013.board.local" Name="HWAddress" Component_="HWAddress"/>
<ROW Registry="HostName" Root="2" Key="SYSTEM\CurrentControlSet\Control\Print\Monitors\Standard TCP/IP Port\Ports\NL-SAP1-P013.board.local" Name="HostName" Value="NL-SAP1-P013.board.local" Component_="HostName"/>
<ROW Registry="IPAddress" Root="2" Key="SYSTEM\CurrentControlSet\Control\Print\Monitors\Standard TCP/IP Port\Ports\NL-SAP1-P013.board.local" Name="IPAddress" Component_="IPAddress"/>
<ROW Registry="PortNumber" Root="2" Key="SYSTEM\CurrentControlSet\Control\Print\Monitors\Standard TCP/IP Port\Ports\NL-SAP1-P013.board.local" Name="PortNumber" Value="#9100" Component_="PortNumber"/>
<ROW Registry="Protocol" Root="2" Key="SYSTEM\CurrentControlSet\Control\Print\Monitors\Standard TCP/IP Port\Ports\NL-SAP1-P013.board.local" Name="Protocol" Value="#1" Component_="Protocol"/>
<ROW Registry="SNMP_Community" Root="2" Key="SYSTEM\CurrentControlSet\Control\Print\Monitors\Standard TCP/IP Port\Ports\NL-SAP1-P013.board.local" Name="SNMP Community" Value="public" Component_="SNMP_Community"/>
<ROW Registry="SNMP_Enabled" Root="2" Key="SYSTEM\CurrentControlSet\Control\Print\Monitors\Standard TCP/IP Port\Ports\NL-SAP1-P013.board.local" Name="SNMP Enabled" Value="#0" Component_="SNMP_Enabled"/>
<ROW Registry="SNMP_Index" Root="2" Key="SYSTEM\CurrentControlSet\Control\Print\Monitors\Standard TCP/IP Port\Ports\NL-SAP1-P013.board.local" Name="SNMP Index" Value="#1" Component_="SNMP_Index"/>
<ROW Registry="Version" Root="2" Key="SYSTEM\CurrentControlSet\Control\Print\Monitors\Standard TCP/IP Port\Ports\NL-SAP1-P013.board.local" Name="Version" Value="#1" Component_="Version"/>
</COMPONENT>
<COMPONENT cid="caphyon.advinst.msicomp.MsiSignatureComponent">
<ROW Signature="FileSearchSign" FileName="rundll32.exe"/>
<ROW Signature="FileSearchSign_1" FileName="net.exe"/>
<ROW Signature="FileSearchSign_10" FileName="rundll32.exe"/>
<ROW Signature="FileSearchSign_11" FileName="net.exe"/>
<ROW Signature="FileSearchSign_12" FileName="net.exe"/>
<ROW Signature="FileSearchSign_2" FileName="net.exe"/>
<ROW Signature="FileSearchSign_3" FileName="net.exe"/>
<ROW Signature="FileSearchSign_4" FileName="net.exe"/>
<ROW Signature="FileSearchSign_5" FileName="net.exe"/>
<ROW Signature="FileSearchSign_6" FileName="net.exe"/>
<ROW Signature="FileSearchSign_7" FileName="net.exe"/>
<ROW Signature="FileSearchSign_8" FileName="rundll32.exe"/>
<ROW Signature="FileSearchSign_9" FileName="rundll32.exe"/>
</COMPONENT>
<COMPONENT cid="caphyon.advinst.msicomp.MsiUpgradeComponent">
<ROW UpgradeCode="[|UpgradeCode]" VersionMax="[|ProductVersion]" Attributes="1025" ActionProperty="OLDPRODUCTS"/>
<ROW UpgradeCode="[|UpgradeCode]" VersionMin="[|ProductVersion]" Attributes="2" ActionProperty="AI_NEWERPRODUCTFOUND"/>
</COMPONENT>
</DOCUMENT>
ESKA
FOLLOW US
Get the latest news in Application Packaging