We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

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

Delete registry value doesn't work on some machines

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: 7853
Joined: Wed Jun 13, 2018 7:49 am

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

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

Thanks Catalin, I'll forward all the details to the support address you provided.
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

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

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”