Post Build step not working - Advanced Installer Community

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!

PhilB
Posts: 95
Joined: Fri Jul 06, 2007 4:13 pm

Post Build step not working

Some time ago I posted about being unable to run a post build step when building an exe installer (http://www.advancedinstaller.com/forums ... =2&t=12562). This issue was fixed and I have been using this feature successfully. I now need to do exactly the same post build step for an msi. This fails with error 2203 because the msi either cannot be found or is locked when the post build step runs. I've attached a sample aip file - you will also need the WiRunSQL.vbs script from the Windows sdk.

Regards,

Phil
Attachments
PostBuildTest.aip
(9.46 KiB) Downloaded 443 times
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Post Build step not working

Hi Phil,

I had the developer responsible for this part of the application take a look at your .AIP and he found that the output folder you are using is wrong. This is why the .MSI cannot be found.

Can you please try using AI_BUILD_OUTPUT_FOLDER instead like mentioned in our build events user guide article?

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
PhilB
Posts: 95
Joined: Fri Jul 06, 2007 4:13 pm

Re: Post Build step not working

While my example is using the wrong folder (sorry!), the error is the same when using either AI_BUILD_OUTPUT_FOLDER or replacing all the properties with hard coded locations.

Phil
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Post Build step not working

Hi Phil,

Our testing proves different. Can you please try on another similar machine and see if the error persists( virtual machine even )?
Also, can you please try the script outside the build so you make sure it works as expected?

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
PhilB
Posts: 95
Joined: Fri Jul 06, 2007 4:13 pm

Re: Post Build step not working

OK thanks for your help, I eventually got it to work. The problem was mainly that I needed to specify the full path to the msi in the script arguments even though I was setting the working directory to be the output folder.
I did have some difficulty in selecting the correct folders using properties rather than absolute paths given that these seem to be almost a secret in that they are not documented very well and don't always appear in the dialogs - maybe some expansion of the help would be useful?

Thanks again,

Phil
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Post Build step not working

Hi Phil,

Thank you for your suggestion, we'll consider to be more specific in the user guide.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”