USB installer update problems - Advanced Installer Community
UT_Elliot
Posts: 3
Joined: Fri Mar 06, 2026 4:41 pm

USB installer update problems

Hi, we are working on making our app work on removable drives. Installing the MSI to the removable drive was easy enough by updating the dialog but we are now struggling to get updating working. There are two problems: it seems to fail to create the Config.Msi folder, and even if you make the Config.Msi folder I get the following error: "There was an error creating a temporary file that is needed to complete this installation"
The Config.Msi folder then requires privilege to access, and attempting again gets this error: "error getting file security getlasterror 5" both of which cause the update to fail and rollback.
Any help or advice would be greatly appreciated, thanks!
Catalin
Posts: 7847
Joined: Wed Jun 13, 2018 7:49 am

Re: USB installer update problems

Hello Elliot and welcome to our forums,

That looks like a permission issues indeed.

The Config.MSI is a hidden folder used by Windows Installer to cache rollback information.

If you launch the updated version using admin rights, does this issue still persist? For example, if the setup is an MSI, you can launch CMD as admin and then launch the MSI from there using msiexec /i <path to msi> command. If it is an EXE file, you can right click on it and select "Run as administrator".

Could you please try that and let me know if it helps?

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
UT_Elliot
Posts: 3
Joined: Fri Mar 06, 2026 4:41 pm

Re: USB installer update problems

Hi Catalin,

Thanks for your reply! It's an MSI and running it through the CMD as admin did work to update the app. Does this mean that the updater isn't running as an admin? We wouldn't really want the end user to have to do anything out of the ordinary to update their app.

Also, unless I manually add the Config.Msi to the removable drive I also cannot uninstall the app through the Add/Remove Programs Windows settings for the same reason

Alternatively I think we would be happy with disabling rollbacks at least in the short term if this is possible in advanced installer?

Thanks,
Elliot
Catalin
Posts: 7847
Joined: Wed Jun 13, 2018 7:49 am

Re: USB installer update problems

Hello Elliot,

When you initially installed the setp to the removable drive, did you not encounter issues requiring admin rights?

Because an upgrade is basically the removal of the older version and the installation of the newer one.

If the first install worked just fine, then the upgrade should also work just fine, unless something changed in the meantime - e.g. someone changed the permissions of the installation folder to be more strict.
Alternatively I think we would be happy with disabling rollbacks at least in the short term if this is possible in advanced installer?
Regarding this, I would highly advise against as that folder does not only cache the MSI for rollback, but does some additional things also.

Also, what do you exactly mean by "removable drive"? Could you please give me some more details here so I better understand your scenario? Are you trying to install the setup on a USB drive, like explained in the following article?

How do I install a package on a USB drive?

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
UT_Elliot
Posts: 3
Joined: Fri Mar 06, 2026 4:41 pm

Re: USB installer update problems

Yeah installing to the removable drive worked completely fine, no issues.

We thought the same thing which confused us!

Yes exactly, by removable drive I just mean a USB stick, tried a couple of different ones, NTFS formatted.

In the end we just swapped to an exe rather than msi installer and that fixed the issue so we have just gone with that instead.

Thanks,
Elliot
Catalin
Posts: 7847
Joined: Wed Jun 13, 2018 7:49 am

Re: USB installer update problems

Hello Elliot,

Thank you for your followup on this.

Glad to hear everything is working as expected now.

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

Return to “Common Problems”