Sangam
Posts: 25
Joined: Thu Sep 27, 2012 7:33 am

Custom Action -Launch file as administrator

Hi ,
I'm using custom action -"Launch file as administrator " to run my one of .exe as admin it works fine during .msi installation
but UAC box directly comes in minimize mode i want that UAC box comes in maximize mode so user can see this during installation.
Thanks
Sangam
Attachments
untitled.JPG
untitled.JPG (107.69 KiB) Viewed 7650 times
Daniel
Posts: 8271
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Custom Action -Launch file as administrator

Hello Sangam,

I've tested your scenario, but I could not reproduce the behavior. Can you reproduce the behavior on multiple clean machines? If so, can you give us more details about your scenario? Also, can you attach a sample reproducing the behavior?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
navya
Posts: 55
Joined: Thu Jan 05, 2012 6:36 am

Re: Custom Action -Launch file as administrator

Hi team,

I am using Advanced installer to make MyWebApplication as exe file.
I am trying to to use tomcat,MySQL and AppacheMq in my web Application. I am running with 2 issues when I am creating a Exe file
1)When I package my Application along with mySql Script which runs on Database. then I am getting Tomcat Services failes to start please check the privileges error
but If i remove Database script then it is not throwing any error. I am not able to figure out where i went wrong
2)I am using Apcahe mq in my Application. When I run my Application then a bat file in the Apache mq need to run. So How can I set Custom actions for a bat file to run along with my application.
Please suggest me what configuration should i make to get the right output?
thanks in advance :(
Daniel
Posts: 8271
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Custom Action -Launch file as administrator

Hello,
1)When I package my Application along with mySql Script which runs on Database. then I am getting Tomcat Services failes to start please check the privileges error
but If i remove Database script then it is not throwing any error. I am not able to figure out where i went wrong
Can you please tell us if you are using a custom action to run the SQL script or our "SQL Scripts" support. Also, the Tomcat server is already installed on target machine? Please keep in mind that you can use our "Tomcat Web Application" template in order to create an installer for a Tomcat web application.
2)I am using Apcahe mq in my Application. When I run my Application then a bat file in the Apache mq need to run. So How can I set Custom actions for a bat file to run along with my application.
Please suggest me what configuration should i make to get the right output?
I'm afraid I don't fully understand your scenario. Can you give us more details about this (maybe exemplify)? Also, you can take a look on our "Launch a CMD or BAT file" article.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
navya
Posts: 55
Joined: Thu Jan 05, 2012 6:36 am

Re: Custom Action -Launch file as administrator

HI Team,

Thank You for replying ,

I am using java web Application along with Mysql Database and Apache MQ software for message logging. During Packaging my Application I want Apache Mq services to be added with start and stop servies. So I need to add the Apache Service file as custom action.Which means when i install my application Apache mq services need to automatic(Similary like tomcat services). Please let me know how to make the Apache mq services automatic . Its really urgent :(
Daniel
Posts: 8271
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Custom Action -Launch file as administrator

Hello,

In order to achieve what you want you can use a service control operation for your ActiveMQ service. Also, you should schedule your install service custom action before "Install Execution Stage -> Add Resources -> StartServices" standard action.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”