robertoldaker
Posts: 2
Joined: Mon Oct 28, 2019 12:31 pm

Problem creating registry key with MSIX installer

Mon Oct 28, 2019 12:50 pm

Hi,

I have created an .rip file that targets an .msix installer. To create it I used the repackager using my existing .exe intaller. The installer needs to write to registry key
"\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run" so that it can start the app when a user logs in.

This worked fine when using the original .exe installer.

Howerver, the .msix installer is not writing this key. Other components are installed fine.

The registry key should be written since its in the .rip file. I have included a screen showing the registry entry in the .rip file.

Any ideas what might be going on here?

Thanks,

Rob.
Attachments
advanced installer.png
advanced installer.png (143.15KiB)Viewed 19204 times

Bogdan
Posts: 2791
Joined: Tue Jul 07, 2009 7:34 am
Contact:  Website

Re: Problem creating registry key with MSIX installer

Fri Nov 01, 2019 3:34 pm

Hi Robert,

Please note that the registry you put inside an MSIX package are only visible to your app, not for the rest of the apps or the OS. With this in mind, the Run key is useless for what you want to do.

The solution is to go to Declarations page and add an app declaration for a startup task, as you can see in the attached screenshot.

startuptask.png
startuptask.png (61.67KiB)Viewed 19180 times
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”