Mark1701
Posts: 4
Joined: Thu Aug 22, 2019 12:40 pm

Delete registry value doesn't work on some machines

Tue Feb 02, 2021 7:53 pm

I'm having some difficulties with the remove registry value functionality.

I have a registry value named "ApplicationFilesCopied" saved under:
Computer\HKEY_CURRENT_USER\SOFTWARE\[XXXX]\[YYY]\5.0\

that I need to delete whenever my installer runs (installation).

To achieve this, I recreated that registry structure, down to the 5.0 key, in my installer and added a Value removal operation that targets that value specifying:
* Name: ApplicationFilesCopied
* Component: the main exe of the SW tool we install
* Remove on: Component install
* Conditions: empty

This works well on my machine and also on another PC but... on a colleague's laptop the key is not removed. No errors are given.

All machines are Windows 10 64 bit.

I've tried to enable verbose logging but I can't see any particular difference regarding this operation, all logs from all machines contain the entry:

Code: Select all

MSI (s) (D8:E8) [14:53:47:961]: Executing op: ActionStart(Name=RemoveRegistryValues,Description=Removing system registry values,Template=Key: [1], Name: [2])
MSI (s) (D8:E8) [14:53:47:962]: Executing op: ProgressTotal(Total=1,Type=1,ByteEquivalent=13200)
MSI (s) (D8:E8) [14:53:47:962]: Executing op: RegOpenKey(Root=-2147483647,Key=Software\[XXXX]\[YYY]\5.0,,BinaryType=0,,)
MSI (s) (D8:E8) [14:53:47:962]: Executing op: RegRemoveValue(Name=ApplicationFilesCopied,,)
...
Any ideas on how I could investigate/solve this problem?

Catalin
Posts: 6542
Joined: Wed Jun 13, 2018 7:49 am

Re: Delete registry value doesn't work on some machines

Thu Feb 04, 2021 9:32 pm

Hello Mark,

Unfortunately, I can not really say why this is happening.

In order for me to further investigate this, could you please forward me the following resources by e-mail at support at advancedinstaller dot com:

- a copy of your .AIP file

- an installation log from the machine where the operation succeeds

- an installation log from the machine where the operation fails

Code: Select all

msiexec /i <path_to_msi> /L*V <path_to_log>
for an MSI setup and:

Code: Select all

setup.exe /L*V <path_to_log>
for an EXE setup.

- a screenshot of the registry structure you want to remove (from regedit.exe)

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Mark1701
Posts: 4
Joined: Thu Aug 22, 2019 12:40 pm

Re: Delete registry value doesn't work on some machines

Mon Feb 08, 2021 4:52 pm

Thanks Catalin, I'll forward all the details to the support address you provided.

Catalin
Posts: 6542
Joined: Wed Jun 13, 2018 7:49 am

Re: Delete registry value doesn't work on some machines

Thu Feb 11, 2021 7:19 pm

Hello Marco,

I have answered you over the e-mail.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”