MrBrendan
Posts: 6
Joined: Tue Mar 17, 2015 9:49 pm

Custom Action Sequencing on upgrades

Hello there,

We have an MSI installer which uninstalls a previous version of the software.

I need to schedule a custom action which copies a file (outside the installation locations) to C:\temp for further processing later on down the line.

I call a lanching an exe custom action, in the beginning UI sequence after begin. And i get an error stating: 'Directory .... not initialized.'

From my days of Installshield, i thought you could put custom actions that affect the file system in the UI sequence as long as they didn't pertain to your installation locations. Is this not the case?

My launchAnEXE custom action has the parameters of: xcopy, C:\Brand\temp.txt %temp% /Y, WindowsVolume.

I'm on a windows 7 machine. I need this custom action to copy the file before the uninstallation of my previous version.

Any advice? Thank you in advance!
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Custom Action Sequencing on upgrades

Hello,

Can you please try to add your custom action after the Paths Resolution stage from the Wizard Dialogs Stage and see if the behaviour still persist.

Let us know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MrBrendan
Posts: 6
Joined: Tue Mar 17, 2015 9:49 pm

Re: Custom Action Sequencing on upgrades

Dan, Thank you for your quick response.

I placed it right after CostFinalize and now it's saying "a program require from this program to complete could not be run . Please contact your package vendor.....

Any ideas?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Custom Action Sequencing on upgrades

Hello,

In order to have a better view about this, can you please send us the .AIP (project file) and a verbose log of the installation process to support at advancedinstaller dot com so we can investigate it? If it contains confidential information you can send us a small test project which reproduce this behavior.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”