Run Batchfile after installation problem - Page 2 - Advanced Installer Community
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Run Batchfile after installation problem

Hi,

As I mentioned before, you can have have an EXE package which will install the MSI in silent mode and everything will be installed automatically when the user click on the link.

If you want to have a MSI package, you can set it to run with Basic UI. In this case the installer will only show to the user a progress bar and the [Cancel] button, but all the work will also be done automatically.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
dfbdp
Posts: 25
Joined: Mon Jan 06, 2014 9:00 am

Re: Run Batchfile after installation problem

Ah, i see the problem now.

So i need to save the MSI file in .exe file instead to make it all silent, with only progress bar?
dfbdp
Posts: 25
Joined: Mon Jan 06, 2014 9:00 am

Re: Run Batchfile after installation problem

Could you make your example to be an .exe file instead? As i understand it, this would make it possible to run the wrapper.msi in silent mode.?
So the way it would work would be this:

1) User clicks "install link" on website.
2) User are promted for to run install.ede and clicks yes.
3) Install.exe then runs silent with progressbar, where it runs the batch file from within the "Image64a x64" folder, which installes the program.

?
dfbdp
Posts: 25
Joined: Mon Jan 06, 2014 9:00 am

Re: Run Batchfile after installation problem

Ah, i made it work now :D... but i needed to have the "Launchfile" BELOW the "Finish execution" in the install execution stage... not above...
Now i have a MSI, which insert the files and run the batch file in silentmode, so it works now... :)

I will try to get another package to work... :P

Thx
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Run Batchfile after installation problem

Hi Brian,
So i need to save the MSI file in .exe file instead to make it all silent, with only progress bar?
If you want to have a MSI file with only progress bar, you can go in the Install Parameters page and select the "Limit to basic user interface (simple progress and error handling)" option.
Ah, i made it work now ... but i needed to have the "Launchfile" BELOW the "Finish execution" in the install execution stage... not above...
I'm not sure why did you need to move the custom action below the "Finish Execution" section because those actions are not executed when the package runs with Basic UI or in silent mode.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
dfbdp
Posts: 25
Joined: Mon Jan 06, 2014 9:00 am

Re: Run Batchfile after installation problem

Hi Eusebio,

I know got it to work :)

It was "add file" in the custom actions which i managed, due to your guide, to setup correctly and now the packages are working silent and perfect. :)

Thank you for the good support!

Best regards
Brian Petersen
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Run Batchfile after installation problem

You're welcome Brian. I'm glad you got this working.

Just let us know anytime you need help.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
dfbdp
Posts: 25
Joined: Mon Jan 06, 2014 9:00 am

Re: Run Batchfile after installation problem

Hi Eusebio,

I have ran into another straneg problem.

I have made a project (Java 7.51) which runs the files as ELEVATED, since the frontend users has UAC enabled. The package works on windows 7, prompt an UAC dialog and when i press "Yes" the msi file is installed and it works!.
But the package dont work on windows 8 and windows 8.1

The UAC is shown and after "yes" is clicked, the package shows a small progress and then closes, and then nothing else happens. I Have no idea on what to do.

Can you help? THX
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Run Batchfile after installation problem

Hi Brian,

I'm not sure why you encounter this behavior. Can you please send us the .AIP (project file) and a verbose log of the installation to support at advancedinstaller dot com so we can investigate them?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
dfbdp
Posts: 25
Joined: Mon Jan 06, 2014 9:00 am

Re: Run Batchfile after installation problem

Hi,

I manage to find the solution. It was the escalation of the MSI.

Thx
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Run Batchfile after installation problem

You're welcome. I'm glad you got this working.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
dfbdp
Posts: 25
Joined: Mon Jan 06, 2014 9:00 am

Re: Run Batchfile after installation problem

Hi Eusebiu,

I have a package containing a batch file which runs a exe file, and it works fine when used.
I have several packages which has this setup and runs fine, but this speciel package (Microsoft essentials) somehow dont run and install and i cant figure out why.

It is made exactly as the other packages, which you explained me how to make, but it does not work.

Can you look at the package for me and maybe find out why it does not work?

Regards
Brian Petersen
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Run Batchfile after installation problem

Hello Brian,

I'm afraid I don't fully understand you scenario. Can you please give us more details about this (maybe exemplify)? Are you trying to install the Microsoft essentials package within your installation package using a BAT file which will launch it?

Also, can you please send us the .AIP (project file) and a verbose log of the installation to support at advancedinstaller dot com so we can investigate them?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
dfbdp
Posts: 25
Joined: Mon Jan 06, 2014 9:00 am

Re: Run Batchfile after installation problem

Hi,

Yes, i have a batch file with parameters,m which runs the default Microsoft essentials.exe file and this works OK.
But when i compile it to a .exe or .msi with AI, the package dont work/install.

What i dont understand is that i have several other projects with the same setup. 1 batch file with parameters, which calls an .exe and when
i package them through AI, they work perfectly.

The package with Microsoft essentials is setup exactly the same way, the working packages are setup, so i cant find the error
on why this package wont run/install.

I have emailed the .AIP to your email,thx.

Regards
Brian Petersen

Return to “Building Installers”