Solved

Batch file within msi package

Posted on 2010-11-24
7
1,584 Views
Last Modified: 2013-12-09
want to run few commands on client end using startup script or logon script. but running batch files has been denied by antivirus software. how can I package batch file and deploy it to client using AD.

If I can find a solution to packge with msi using Microsoft tool I can complete other things.

Thank You.
Janaka.
0
Comment
Question by:Support_Brandix
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 4

Expert Comment

by:tmwest
ID: 34207210
Can you run other types of files; .vbs, .cmd, .exe?  Can you just add an exception to your virus scan application to allow this bat file to run?
0
 

Author Comment

by:Support_Brandix
ID: 34210273
no can't modify policy right now. so only option is making a msi and deploy. let me know how can I make a msi including a bat file.
0
 
LVL 4

Expert Comment

by:fr0nk
ID: 34211557
Use MakeMSI from http://www.softpedia.com/get/Authoring-tools/Setup-creators/MAKEMSI.shtml

After that I'm pretty sure your AntiVir will still abort the execution of the bat, since it uses a file system driver (which you can view by invoking fltmc in a cmd window).
So don't put the .bat inside the MSI but a compiled .exe of the bat.
You can compile the .bat with http://www.abyssmedia.com/quickbfc/

Hope that helps.
0
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 

Author Comment

by:Support_Brandix
ID: 34213724
I am thinking not to go with bat file and instead use existing setup.exe file and do a msi package.

I installed makemsi software but I have no Idea how I can package setup.exe in to a msi file using this tool. also I want to pass a parameter to same exe.
0
 
LVL 4

Accepted Solution

by:
Sajen Jose earned 500 total points
ID: 34217001
You can execute tasks using the Custom Actions in MSI or MST.

You can find more details about Custom Actions here -> http://msdn.microsoft.com/en-us/library/aa368066%28v=VS.85%29.aspx
0
 

Author Comment

by:Support_Brandix
ID: 34225548
@Sajen Jose
I've gone through the msdn that you have provided but it was very difficult task for me to find exat sytax to set custom action for my msi file.
my MSI file contains 3 files (x,y,z) and it will be exracted to program files\company\product folder at the execution. What I want to do is execute one of extracted file with parameter. below is sample how it works when run from command prompt.
 file x /parameter1=file y

please let me how I can modify msi table to acheive above task.

Thank you,
Janaka
0
 
LVL 4

Expert Comment

by:Sajen Jose
ID: 34229489
Hi ,

The following two videos should give you some pointers on how to create a Custom Action using Wise or Installsheild.

Using Wise:
http://www.appdeploy.com/video/ca-wps.asp

Using Installsheild
http://www.appdeploy.com/video/ca-ias.asp

Custom Actions can also be created using Orca which is freely available. A tutorial on the same is given here - http://bonemanblog.blogspot.com/2005/10/custom-action-tutorial-part-i-custom.html
0

Featured Post

When ransomware hits your clients, what do you do?

MSPs: Endpoint security isn’t enough to prevent ransomware.
As the impact and severity of crypto ransomware attacks has grown, Webroot has fought back, not just by building a next-gen endpoint solution capable of preventing ransomware attacks but also by being a thought leader.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you troubleshoot Outlook for clients, you may want to know a bit more about the OST file before doing your next job. IMAP can cause a lot of drama if removed in the accounts without backing up.
Check out this step-by-step guide for using the newly updated Experts Exchange mobile app—released on May 30.
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question