can't run bash file (run setup file) - 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!

VakhoQ
Posts: 4
Joined: Wed Aug 22, 2012 2:20 pm

can't run bash file (run setup file)

Hello,

I have some question with Advanced Installer.

I'm making setup installation, and I have that following problem: After I finish installation I need to execute Bat file. I'm installing JRE and Adobe reader by bat file.
everything is all right, If I don't run setup file by bat file. In the other words , everything is all right If I add setup exe file in "Custom Behavior -> Custom Action" and "Lunched Installed file".

but If I run But file in "Custom Behavior -> Custom Action" and "Lunch File or Open Url", setup is not running.

my BUT is like this:

Code: Select all

cd %~dp0
jre-6u32-windows-i586.exe
if i run that Script in CMD, it works! but it's not working when Advanced Installer runs :-( what can i Do?


I have trial version if Advanced Installer v 9.4
Last edited by VakhoQ on Wed Aug 22, 2012 3:03 pm, edited 2 times in total.
VakhoQ
Posts: 4
Joined: Wed Aug 22, 2012 2:20 pm

Re: can't run bash file (run setup file)

As A result I want to install java silently (it will not show me the installing wizard). for this i should add "/s" in CMD like that:

Code: Select all

start /w jre-6u32-windows-i586.exe /s 
in CMD it works. now i want to run that script by advanced installer, but i dont know how... could you help me , please?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: can't run bash file (run setup file)

Hello and welcome to Advanced Installer forums,

Thank you for taking the time to evaluate Advanced Installer.

Why don't you try adding JRE and Adobe Reader as prerequisites instead (that's their purpose). There both available as predefined prerequisites from the Prerequisites page and it's easier than with a .BAT file.

Here's an article that may help:
How do I add JRE or .NET Framework as a prerequisite?

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
VakhoQ
Posts: 4
Joined: Wed Aug 22, 2012 2:20 pm

Re: can't run bash file (run setup file)

thank you very much. but now I have other question.

But Im interested in (and I need it) how to install JRE and Adobe silent. Advanced Installer has commands for silent installing, but I don't understand how to use them, In the other words or what command should I use to install programs silently .

IMPORTANT: On the one hand , I need GUI installation wizard, but on the other hand I need to install JRE silently during the installation
VakhoQ
Posts: 4
Joined: Wed Aug 22, 2012 2:20 pm

Re: can't run bash file (run setup file)

IMPORTANT: On the one hand , I need GUI installation wizard, but on the other hand I need to install JRE silently during the installation
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: can't run bash file (run setup file)

Hello,
In the other words or what command should I use to install programs silently .
Here's a related link you can follow:
Regarding Prerequisites silent installation

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

Return to “Common Problems”