Post Build step not working

Having trouble running Advanced Installer? Got a bug to report? Post it all here.

Post Build step not working

Postby PhilB » Wed Mar 21, 2012 6:14 pm

Some time ago I posted about being unable to run a post build step when building an exe installer (http://www.advancedinstaller.com/forums/viewtopic.php?f=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 30 times
PhilB
 
Posts: 69
Joined: Fri Jul 06, 2007 4:13 pm

Re: Post Build step not working

Postby mihai.petcu » Thu Mar 22, 2012 10:07 am

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
http://www.advancedinstaller.com/
mihai.petcu
 
Posts: 3452
Joined: Thu Aug 05, 2010 8:01 am

Re: Post Build step not working

Postby PhilB » Thu Mar 22, 2012 10:38 am

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
PhilB
 
Posts: 69
Joined: Fri Jul 06, 2007 4:13 pm

Re: Post Build step not working

Postby mihai.petcu » Fri Mar 23, 2012 9:09 am

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
http://www.advancedinstaller.com/
mihai.petcu
 
Posts: 3452
Joined: Thu Aug 05, 2010 8:01 am

Re: Post Build step not working

Postby PhilB » Fri Mar 23, 2012 11:49 am

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
PhilB
 
Posts: 69
Joined: Fri Jul 06, 2007 4:13 pm

Re: Post Build step not working

Postby mihai.petcu » Sat Mar 24, 2012 3:54 pm

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
http://www.advancedinstaller.com/
mihai.petcu
 
Posts: 3452
Joined: Thu Aug 05, 2010 8:01 am


Return to Common Problems

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 2 guests