[wix-users] SPOOFED: Some registry keys not added?

Persson, Magnus (SE-TLX) magnus.persson at assaabloy.com
Tue Jun 14 00:11:25 PDT 2016


I forgot the markup...

       <Component Id="CMP_AppUpdate" 
Guid="B9452A12-9CB7-4158-B68A-BEAE1C4F8907">
         <File Id="FILE_AppUpdate" KeyPath="yes" 
Source="$(var.SourceFiles)\COM\AppUpdate.exe" />
         <!-- AppID -->
         <RegistryKey Key="AppID\AppUpdate.EXE" Root="HKCR">
           <RegistryValue Name="AppID" 
Value="{602A5403-36BC-471A-BA05-CF2DDE7AAAD0}" Type="string" />
         </RegistryKey>
         <RegistryKey Key="AppID\{602A5403-36BC-471A-BA05-CF2DDE7AAAD0}" 
Root="HKCR">
           <RegistryValue Value="ASSA ABLOY Hospitality AppUpdate" 
Type="string" />
         </RegistryKey>
         <!-- CLSID -->
         <RegistryKey Key="CLSID\{19DA01BC-529E-44B1-A415-D6FFE697DDE3}" 
Root="HKCR">
           <RegistryValue Name="AppID" 
Value="{602A5403-36BC-471A-BA05-CF2DDE7AAAD0}" Type="string" />
         </RegistryKey>
         <RegistryKey ForceCreateOnInstall="yes" 
Key="CLSID\{19DA01BC-529E-44B1-A415-D6FFE697DDE3}\Programmable" 
Root="HKCR" />
         <RegistryKey 
Key="CLSID\{19DA01BC-529E-44B1-A415-D6FFE697DDE3}\TypeLib" Root="HKCR">
           <RegistryValue Value="{040A1374-C050-44E6-AF8B-B2FAAD4D0959}" 
Type="string" />
         </RegistryKey>
         <!-- Interface -->
         <RegistryKey 
Key="Interface\{A415BA80-6659-425C-8DCD-A389900F949A}" Root="HKCR">
           <RegistryValue Value="IAutoUpdateCards" Type="string" />
         </RegistryKey>
         <RegistryKey 
Key="Interface\{A415BA80-6659-425C-8DCD-A389900F949A}\ProxyStubClsid32" 
Root="HKCR">
           <RegistryValue Value="{00020424-0000-0000-C000-000000000046}" 
Type="string" />
         </RegistryKey>
         <RegistryKey 
Key="Interface\{A415BA80-6659-425C-8DCD-A389900F949A}\TypeLib" Root="HKCR">
           <RegistryValue Value="{040A1374-C050-44E6-AF8B-B2FAAD4D0959}" 
Type="string" />
           <RegistryValue Name="Version" Value="1.0" Type="string" />
         </RegistryKey>
         <!-- TypeLib -->
         <RegistryKey 
Key="TypeLib\{040A1374-C050-44E6-AF8B-B2FAAD4D0959}\1.0" Root="HKCR">
           <RegistryValue Value="AppUpdate 1.0 Type Library" 
Type="string" />
         </RegistryKey>
         <RegistryKey 
Key="TypeLib\{040A1374-C050-44E6-AF8B-B2FAAD4D0959}\1.0\FLAGS" Root="HKCR">
           <RegistryValue Value="0" Type="string" />
         </RegistryKey>
         <RegistryKey 
Key="TypeLib\{040A1374-C050-44E6-AF8B-B2FAAD4D0959}\1.0\HELPDIR" 
Root="HKCR">
           <RegistryValue Value="[\[]$$AppUpdate.exe[\]]" Type="string" />
         </RegistryKey>
         <RegistryKey 
Key="TypeLib\{040A1374-C050-44E6-AF8B-B2FAAD4D0959}\1.0\0\win32" 
Root="HKCR">
           <RegistryValue Value="[\[]!appupdate.exe[\]]" Type="string" />
         </RegistryKey>
       </Component>

/Magnus

On 2016-06-14 09:03, Persson, Magnus (SE-TLX) wrote:
> Hi,
>
> Since heat.exe do not harvest COM information from EXE-files (only DLL-files) I have to add the registry information manually through the XML.
>
> This is the registry information exported by another tool into a reg-file:
>
> Windows Registry Editor Version 5.00
>
> [HKEY_CLASSES_ROOT]
>
> [HKEY_CLASSES_ROOT\AppID]
>
> [HKEY_CLASSES_ROOT\AppID\AppUpdate.EXE]
> "AppID"="{602A5403-36BC-471A-BA05-CF2DDE7AAAD0}"
>
> [HKEY_CLASSES_ROOT\AppID\{602A5403-36BC-471A-BA05-CF2DDE7AAAD0}]
> @="ASSA ABLOY Hospitality AppUpdate"
>
> [HKEY_CLASSES_ROOT\CLSID]
>
> [HKEY_CLASSES_ROOT\CLSID\{19DA01BC-529E-44B1-A415-D6FFE697DDE3}]
> "AppID"="{602A5403-36BC-471A-BA05-CF2DDE7AAAD0}"
>
> [HKEY_CLASSES_ROOT\CLSID\{19DA01BC-529E-44B1-A415-D6FFE697DDE3}\Programmable]
>
> [HKEY_CLASSES_ROOT\CLSID\{19DA01BC-529E-44B1-A415-D6FFE697DDE3}\TypeLib]
> @="{040A1374-C050-44E6-AF8B-B2FAAD4D0959}"
>
> [HKEY_CLASSES_ROOT\Interface]
>
> [HKEY_CLASSES_ROOT\Interface\{A415BA80-6659-425C-8DCD-A389900F949A}]
> @="IAutoUpdateCards"
>
> [HKEY_CLASSES_ROOT\Interface\{A415BA80-6659-425C-8DCD-A389900F949A}\ProxyStubClsid32]
> @="{00020424-0000-0000-C000-000000000046}"
>
> [HKEY_CLASSES_ROOT\Interface\{A415BA80-6659-425C-8DCD-A389900F949A}\TypeLib]
> @="{040A1374-C050-44E6-AF8B-B2FAAD4D0959}"
> "Version"="1.0"
>
> [HKEY_CLASSES_ROOT\TypeLib]
>
> [HKEY_CLASSES_ROOT\TypeLib\{040A1374-C050-44E6-AF8B-B2FAAD4D0959}]
>
> [HKEY_CLASSES_ROOT\TypeLib\{040A1374-C050-44E6-AF8B-B2FAAD4D0959}\1.0]
> @="AppUpdate 1.0 Type Library"
>
> [HKEY_CLASSES_ROOT\TypeLib\{040A1374-C050-44E6-AF8B-B2FAAD4D0959}\1.0\FLAGS]
> @="0"
>
> [HKEY_CLASSES_ROOT\TypeLib\{040A1374-C050-44E6-AF8B-B2FAAD4D0959}\1.0\HELPDIR]
> @="[$AppUpdate.exe]"
>
> [HKEY_CLASSES_ROOT\TypeLib\{040A1374-C050-44E6-AF8B-B2FAAD4D0959}\1.0\0]
>
> [HKEY_CLASSES_ROOT\TypeLib\{040A1374-C050-44E6-AF8B-B2FAAD4D0959}\1.0\0\win32]
> @="[!appupdate.exe]"
>
> This is the part of the log that adds those keys to registry:
>
> MSI (s) (C8:50) [08:43:18:764]: Executing op: RegOpenKey(,Key=AppID\AppUpdate.EXE,,BinaryType=0,,)
> MSI (s) (C8:50) [08:43:18:764]: Executing op: RegAddValue(Name=AppID,Value={602A5403-36BC-471A-BA05-CF2DDE7AAAD0},)
> WriteRegistryValues: Key: \Software\Classes\AppID\AppUpdate.EXE, Name: AppID, Value: {602A5403-36BC-471A-BA05-CF2DDE7AAAD0}
> MSI (s) (C8:50) [08:43:18:765]: Executing op: RegOpenKey(,Key=AppID\{602A5403-36BC-471A-BA05-CF2DDE7AAAD0},,BinaryType=0,,)
> MSI (s) (C8:50) [08:43:18:765]: Executing op: RegAddValue(,Value=ASSA ABLOY Hospitality AppUpdate,)
> WriteRegistryValues: Key: \Software\Classes\AppID\{602A5403-36BC-471A-BA05-CF2DDE7AAAD0}, Name: , Value: ASSA ABLOY Hospitality AppUpdate
> MSI (s) (C8:50) [08:43:18:765]: Executing op: RegOpenKey(,Key=CLSID\{19DA01BC-529E-44B1-A415-D6FFE697DDE3},,BinaryType=0,,)
> MSI (s) (C8:50) [08:43:18:765]: Executing op: RegAddValue(Name=AppID,Value={602A5403-36BC-471A-BA05-CF2DDE7AAAD0},)
> WriteRegistryValues: Key: \Software\Classes\CLSID\{19DA01BC-529E-44B1-A415-D6FFE697DDE3}, Name: AppID, Value: {602A5403-36BC-471A-BA05-CF2DDE7AAAD0}
> MSI (s) (C8:50) [08:43:18:766]: Executing op: RegOpenKey(,Key=CLSID\{19DA01BC-529E-44B1-A415-D6FFE697DDE3}\Programmable,,BinaryType=0,,)
> MSI (s) (C8:50) [08:43:18:766]: Executing op: RegCreateKey()
> WriteRegistryValues: Key: \Software\Classes\CLSID\{19DA01BC-529E-44B1-A415-D6FFE697DDE3}\Programmable, Name: , Value:
> MSI (s) (C8:50) [08:43:18:766]: Executing op: RegOpenKey(,Key=CLSID\{19DA01BC-529E-44B1-A415-D6FFE697DDE3}\TypeLib,,BinaryType=0,,)
> MSI (s) (C8:50) [08:43:18:766]: Executing op: RegAddValue(,Value={040A1374-C050-44E6-AF8B-B2FAAD4D0959},)
> WriteRegistryValues: Key: \Software\Classes\CLSID\{19DA01BC-529E-44B1-A415-D6FFE697DDE3}\TypeLib, Name: , Value: {040A1374-C050-44E6-AF8B-B2FAAD4D0959}
> MSI (s) (C8:50) [08:43:18:766]: Executing op: RegOpenKey(,Key=Interface\{A415BA80-6659-425C-8DCD-A389900F949A},,BinaryType=0,,)
> MSI (s) (C8:50) [08:43:18:766]: Executing op: RegAddValue(,Value=IAutoUpdateCards,)
> WriteRegistryValues: Key: \Software\Classes\Interface\{A415BA80-6659-425C-8DCD-A389900F949A}, Name: , Value: IAutoUpdateCards
> MSI (s) (C8:50) [08:43:18:768]: Executing op: RegOpenKey(,Key=Interface\{A415BA80-6659-425C-8DCD-A389900F949A}\ProxyStubClsid32,,BinaryType=0,,)
> MSI (s) (C8:50) [08:43:18:768]: Executing op: RegAddValue(,Value={00020424-0000-0000-C000-000000000046},)
> WriteRegistryValues: Key: \Software\Classes\Interface\{A415BA80-6659-425C-8DCD-A389900F949A}\ProxyStubClsid32, Name: , Value: {00020424-0000-0000-C000-000000000046}
> MSI (s) (C8:50) [08:43:18:768]: Executing op: RegOpenKey(,Key=Interface\{A415BA80-6659-425C-8DCD-A389900F949A}\TypeLib,,BinaryType=0,,)
> MSI (s) (C8:50) [08:43:18:768]: Executing op: RegAddValue(,Value={040A1374-C050-44E6-AF8B-B2FAAD4D0959},)
> WriteRegistryValues: Key: \Software\Classes\Interface\{A415BA80-6659-425C-8DCD-A389900F949A}\TypeLib, Name: , Value: {040A1374-C050-44E6-AF8B-B2FAAD4D0959}
> MSI (s) (C8:50) [08:43:18:768]: Executing op: RegAddValue(Name=Version,Value=1.0,)
> WriteRegistryValues: Key: \Software\Classes\Interface\{A415BA80-6659-425C-8DCD-A389900F949A}\TypeLib, Name: Version, Value: 1.0
> MSI (s) (C8:50) [08:43:18:768]: Executing op: RegOpenKey(,Key=TypeLib\{040A1374-C050-44E6-AF8B-B2FAAD4D0959}\1.0,,BinaryType=0,,)
> MSI (s) (C8:50) [08:43:18:768]: Executing op: RegAddValue(,Value=AppUpdate 1.0 Type Library,)
> WriteRegistryValues: Key: \Software\Classes\TypeLib\{040A1374-C050-44E6-AF8B-B2FAAD4D0959}\1.0, Name: , Value: AppUpdate 1.0 Type Library
> MSI (s) (C8:50) [08:43:18:769]: Executing op: RegOpenKey(,Key=TypeLib\{040A1374-C050-44E6-AF8B-B2FAAD4D0959}\1.0\FLAGS,,BinaryType=0,,)
> MSI (s) (C8:50) [08:43:18:769]: Executing op: RegAddValue(,Value=0,)
> WriteRegistryValues: Key: \Software\Classes\TypeLib\{040A1374-C050-44E6-AF8B-B2FAAD4D0959}\1.0\FLAGS, Name: , Value: 0
> MSI (s) (C8:50) [08:43:18:769]: Executing op: RegOpenKey(,Key=TypeLib\{040A1374-C050-44E6-AF8B-B2FAAD4D0959}\1.0\HELPDIR,,BinaryType=0,,)
> MSI (s) (C8:50) [08:43:18:769]: Executing op: RegAddValue(,Value=[$AppUpdate.exe],)
> WriteRegistryValues: Key: \Software\Classes\TypeLib\{040A1374-C050-44E6-AF8B-B2FAAD4D0959}\1.0\HELPDIR, Name: , Value: [$AppUpdate.exe]
> MSI (s) (C8:50) [08:43:18:770]: Executing op: RegOpenKey(,Key=TypeLib\{040A1374-C050-44E6-AF8B-B2FAAD4D0959}\1.0\0\win32,,BinaryType=0,,)
> MSI (s) (C8:50) [08:43:18:770]: Executing op: RegAddValue(,Value=[!appupdate.exe],)
> WriteRegistryValues: Key: \Software\Classes\TypeLib\{040A1374-C050-44E6-AF8B-B2FAAD4D0959}\1.0\0\win32, Name: , Value: [!appupdate.exe]
>
> However, the CLSID and Interface keys are not added to the registry. Only the AppID and TypeLib keys are added. What am I doing wrong?
>
> /Magnus
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/
>
>
>   ----------------------------------------------------------------------------------------------
> This E-mail is PLAIN text, not support HTML, see instruction below on how to report SPAM.
> -----------------------------------------------------------------------------------------------
> To submit spam as an attachment to an email message using a mail client:
> 1. Open a new email message.
> 2. Drag the spam email from the Inbox into the new email message.
> 3. Enter asa at websense.com in the To field.
> 4. Click Send.
> -----------------------------------------------------------------------------------------------



More information about the wix-users mailing list