Convert .bat file to .msi

Hi everyone!
Please help....
The case is that I first have to run a batch file (which takes about 2
minutes, because it removes an application) and then AFTER it has run, I
need to run an application packet. I know that it should be possible to
just write the batch script into the "launch before" script of the app.
packet. But it doesnt work. So therefore I will try to convert the .bat
file into a .msi packet. In that way I can use the "depend on another
app.packet"-function.
So please does anyone know how to convert from .bat to .msi?
Or maybe another solution?
THANKS!!!
Chrisitan

Yes I´m deleting directories. Actually it´s uninstalling one anti virus,
so it can install another vendors anti virus.
But I solved the problem. I put an # before launching the .bat file in
the login script.
And after that I used Zenworks to distribute the app. packet.
Since the .bat file takes about 2 minutes to run I added a copy of a
simply file from the
server to the computers harddrive. Then I use a "if exist....else goto
exit" script. In that
way it won´t run the .bat file on every login.
But I still don´t understand why the "launch before" can´t read the .bat
file script.
But anyway....thanks for your reply....this case is solved.
Marcus Breiden wrote:
> Christian wrote:
>
>> Hi everyone!
>> Please help....
>>
>> The case is that I first have to run a batch file (which takes about 2
>> minutes, because it removes an application) and then AFTER it has run, I
>> need to run an application packet. I know that it should be possible to
>> just write the batch script into the "launch before" script of the app.
>> packet. But it doesn?t work. So therefore I will try to convert the .bat
>> file into a .msi packet. In that way I can use the "depend on another
>> app.packet"-function.
>
> hmm... are you deleting directories? I would really try to get that batch to
> run.. could you post it?
>
>> So please does anyone know how to convert from .bat to .msi?
>> Or maybe another solution?
>>
> Software Packing which is part of the suite would allow that, but it would
> only remove existing files... so if you delete a dir with 4 files during
> creating of the msi it would afterwards only delete that dir with those 4
> files... no other files..
>
> not a good approach IMHO..

Similar Messages

  • How do I convert my .mpeg /  .bat files into ones compatible with iPod ?

    I know its a basic question but I want to find out as a new user of iPod Video as to how i can convert .mpeg and .bat files to ones which are compatible with iPod ?

    Hi Ravindra,
    welcome to this forum
    iMovie is an edit app...
    you raise the chance to get an answer to your specific question by posting here:
    http://discussions.apple.com/forum.jspa?forumID=808
    besides: converting mpgs or even .bat files ISN'T basic ... ;-))

  • How can I use an java based app that starts via an inf or bat file?

    I have java exe application that is started using a .bat file and a java exe application that is started using an inf file. Both the .bat and inf prevent the respective application from kicking off.  Is there a way to convert these file types so that they execute on  my MacBook?

    I didn't expect you to have your customer run the command. I would expect you to create the executable and install it. However, there wouldn't be any difference in what you are creating and the .jar file. Either way it is a faceless icon. For that matter, it is no different than a batch file on Windows. I'm not sure what they wouldn't understand with, "copy the Vocab.jar file to wherever you want and double-click it to run the program." In addition, you probably ought to point out that Java is not installed on Mac OS X Lion (10.7.x) and when they double-click the jar file (or whatever you send them), the system will ask if they want to install Java.
    What you really need to do is package up the app inside a Mac application package and provide the user with the application on a .dmg (disk image). Take a look here: http://developer.apple.com/library/mac/#documentation/Java/Conceptual/Jar_Bundle r/Introduction/Introduction.html#//apple_ref/doc/uid/TP40000884
    I also found this which uses ANT to create the bundle: http://informagen.com/JarBundler/

  • How to run sql query in bat file in task schedular at every 10 seconds

    This is my sql script :
    DECLARE @countRows INT,
    @currDate DATE,
    @checkForTasks INT,
    @created_by_id INT,
    @gst_ID int;
    SET @currDate = Getdate()
    SET @countRows = (SELECT Count(*)
    FROM [dbo].[sd_gst_effective_table]
    WHERE isapplied = 0)
    IF @countRows > 0
    -- Check for those GST''s who are not applied yet : if they are greater than 0 then perform next task
    BEGIN
    SET @checkForTasks = (SELECT Count(*)
    -- Check is current date equals to task date or not
    FROM [dbo].[sd_gst_effective_table]
    WHERE effect_date = @currDate AND isapplied = 0)
    IF @checkForTasks > 0
    -- If current date = task date then perform this task
    BEGIN
    SET @created_by_id = (SELECT TOP 1 createdby FROM [dbo].[sd_gst_effective_table] WHERE effect_date = @currDate AND isapplied = 0)
    SET @gst_ID = (SELECT gst_id FROM [dbo].[sd_gst_effective_table] WHERE effect_date = @currDate AND isapplied = 0)
    -- STEP 1 :: InActivate the existing GST according to createdbyID
    UPDATE sd_gst_rate
    SET isactive = 0,
    inactivedate = Getdate()
    WHERE isactive = 1
    AND createdby = @created_by_id
    -- STEP 2 :: Activate the New GST according to implementation date and gstID
    UPDATE sd_gst_rate
    SET isactive = 1,
    activedate = Getdate()
    WHERE id = @gst_ID
    -- STEP 3 :: Inactivate the applied GST from sd_gst_effective_table
    UPDATE [dbo].[sd_gst_effective_table] SET isApplied = 1 WHERE gst_id = @gst_ID
    END
    END
    DECLARE @Text AS VARCHAR(100)
    DECLARE @Cmd AS VARCHAR(100)
    DECLARE @value nvarchar(1000);
    SET @value = (SELECT CONVERT(TIME,GETDATE()) AS HourMinuteSeconds);
    SET @Text = 'File Writed ' + @value
    SET @Cmd ='echo ' + @Text + ' > E:\AppTextFile.txt'
    EXECUTE Master.dbo.xp_CmdShell @Cmd
    This is resided in videos folder of windows , i have created a task schedular in windows 8.1 to run daily at every 10 seconds , but it is not working ... Please tell me how to deal with it.
    Please note : This sql query is running perfectly in sql server. Query have no errors. Please check whats wrong with my time schedular. I just want my schedular to run every 10 seconds regardless of date.

    Hi Emad,
    Is your script in a ".sql" file? May I know how you configure the schedule task action?
    Since you didn't mention how you configure the schedule task, can you confirm you have followed the below step correctly?
    Save your script in a ".sql" file.
    Create a ".bat" file and call the sql file above inside with
    sqlcmd.exe, you can reference
    here.
    Configure a schedule task to run the ".bat" file in a certain interval.
    Have you tried to run the script in you bat file in a standalone commandline window? Please post the script in your bat file, It can help to diagnose the issue.
    If you have any question, feel free to let me know.
    Eric Zhang
    TechNet Community Support

  • Need help pass in date parameter into bat file.

    Is it possible to schedule sql job to execute bat files and pass in date below.
    I want to take a system date and pass into the bat file below.  A Schedule Job will run on Monday at 9 P.M.
    I want to automate this process instead manually enter into the bat file.  Is that possible?
    Any suggestions is appreciate.  SQL 2012
    Thank you so much in advance.
    SQL Schedule job
    DECLARE @sMonday VARCHAR(25) = REPLACE(CONVERT(VARCHAR(10), GETDATE(), 1), '/', '')
    SET @sMonday = @sMonday + '_qa48_Clonedb'
    SELECT @sMonday
    --021315_qa48_Clonedb
    DECLARE @sPrevMonday VARCHAR(25) = CAST(REPLACE(CONVERT(CHAR(10), DATEADD(DAY, - (DATEPART(dw, GETDATE() ) - 1), GETDATE() ),1), '/', '') AS CHAR(6))
    SET @sPrevMonday= @sPrevMonday + '_qa48_Clonedb'
    SELECT @sPrevMonday
    --020815_qa48_Clonedb
    Result want:
    -- Testbatfile.bat
    REM 021615_qa48_Clonedb
    SET sToday = @sMonday        
    SET sPreviousWeek = @sPrevMonday
    SET sNumOfDay=07
    DiskMirror -l snapsrvcfdba n4brec01a -i privkey.ppk "snap rename sql32oltp_repl_dataf sqlsnap__brpRMSDVS050a__recent %sToday% "
    DiskMirror -l snapsrvcfdba n4brec01a -i privkey.ppk "snap rename sql32oltp_repl_logf  sqlsnap__brpRMSDVS050a__recent %sToday% "
    DiskMirror -l snapsrvcfdba l9ABC01d -i privkey.ppk "snap rename sql100oltp_repl_dataf %sPreviousWeek% sqlsnap__ABCPWSCVR050a__%sNumOfDay% "

    See
    https://sharminjahan625.wordpress.com/2013/08/30/384/
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Converting .fmb files into  .txt

    Hi all,
    I have 100 .fmb files.I want to convert .fmb files to .txt at a time .Is it possible?
    please let me know.if possible how to do?
    thank you,
    Message was edited by:
    User71408

    Hi,
    As I mentioned, I don't have a 10g installation right now (I used the XML conversion for a previous employer). But it is basically, "frm2xml.bat myform.fmb", and an XML file named "myform_fmb.xml" will be created, I think in the same directory as the FMB. There are one or two parameters you could send that I think the defaults are typically OK. If you just run the .bat file w/ no paramters I believe you'll get some help.
    I don't think there is any available utility to convert many FMB's with a single call. It shouldn't be too difficult to script a batch file, use Windows scripting, or write a small Java program to convert the files to XML or FMT format though.

  • Batch File for .msi

    Hi,
    Can anybody direct me to a link with a .bat file that will install .msi file for Windows 7 from local computer?
    Thanks in advance

    Hi,
    Just put your msiexec command into a text file and save it with a .bat extension.
    https://technet.microsoft.com/en-us/library/cc759262%28v=ws.10%29.aspx
    Don't retire TechNet! -
    (Don't give up yet - 13,225+ strong and growing)

  • Runtime.exec() with .bat-files in a jar

    Hi All,
    I've written a java-Program, which calls .bat-files per Runtime.exec() for some OS-specific tasks.
    Everything works fine, but if I want to pack the whole code and the .bat-files into several jars, I can't get the bat-files to run. I have tried to get it to work with "getClass().getResource()" as I do the same for my Images, and the returned URL seems to be OK so far (something like jar:file:/c:/test.jar! testpkg/test.bat). I converted this URL into a String and tried to run Runtime.exec() with it, but I always get a Runtime-Exception.
    The String looks exactly like the URL, when I print them to console.
    These bat-files are essential for the application and I would not try to pack them into a jar if I hadn't to distribute this application as a signed applet to unknown users, too.
    I hope there is anyone out there who can tell me if and how it is possible to run an external program out of java, which is packed into a jar, so thanx in advance to any helpful replies.
    acdeka

    You can't run the .bats simply because the shell can't access it. You tell it to run a file that simply doesn't exist in the OS.

  • Opening .bat files on my mac

    A couple of months ago, i installed a windows application to my mac via crossover. However, it quickly became outdated and needs to be patched, but the patch uses a .bat (batch) file. Seeing that i do not have and will not buy a copy of windows, nor run an emulator, i am out of ideas. I have tried running it through Terminal, but permission was denied; the file did not allow me to execute it. I also tried to convert it via Applescript, but that did not work either (maybe it is an error with how i tried to script it, but everything seemed okay). If someone could help me with the script, or tell me how to open the file, that would be great.
    thanks in advance.

    Hi attekiller,
    Terminal seemed to work, but when i told it to execute, it said that I did not have the permission to do so, even though I am the root administrator. I selected the bat file and went file> get info to change the permission, but it said i could only read and write, not execute it. Does this mean that I cannot use terminal to open this?
    Terminal refuses to execute the file as a precaution, since it can not execute the instructions included in the file.
    Read+Write only means that you can 'edit' the text file, but Terminal (and OSX) have no way to execute the Windows System Calls in it.
    I have Crossover lying around since the LameDuck day but haven't had the time to 'play' with it.
    As said you have to execute the batch file while you are in Crossover Windows, so maybe when you import/copy the .bat file into Crossover when running it should enable you to run the file (using the Windows Command Prompt for example).
    Try the Crossover Support Forums or Library http://www.codeweavers.com/support/ for help on how-to do this.
    Stefan
    thanks

  • Can someone explain this HelloWorld Converter Config File?

    Hi,
    Need a dissected explanation of the following HelloWorld.opt file for the HelloWorld Applet. Any help would be appreciated!!
    -out EXP JCA CAP
    -exportpath .
    -applet 0xa0:0x0:0x0:0x0:0x62:0x3:0x1:0xc:0x1:0x1 com.sun.javacard.samples.HelloWorld.HelloWorld
    com.sun.javacard.samples.HelloWorld
    0xa0:0x0:0x0:0x0:0x62:0x3:0x1:0xc:0x1 1.0
    Rgds
    Kaps

    The OPT file is nothing but just a text file. You can have it named .Txt, .cfg, .zie, or whatever.
    It's used for the converter application which is nicely wrapped for you in a bat file.
    The command line would read : converter -config < name of config file >
    To pick apart the commands, just run : converter and you should see the it spit out the options. It's just nicer to have it in a config file instead of typing it all of the time on the command line.
    Take a peek at your JCDevKit_User_Guide.pdf and read about the Converter.
    let me know if you need futher guidance...

  • Process .bat files through the terminal Window?

    Hi,
    I have a large number of .bat file which have been generated from Rendering out of Maya (3D Application) on PC.
    Usually I would process the bat files from within maya's script editor which would generate the Photoshop images.
    The down side is it ties my PC up and I cant really do anything while these are processing .. and it take quiet a while.
    I have Mac which doesn't have Maya... does anybody know if I can process .bat files maybe through the terminal window?. Problem is theres well over 10,000 images to process.
    If it is possible to do this is there a way I can automate this process from the Terminal for all the files?
    Any help would be much appreciated
    Thanks
    Wayne

    No problem, Kurt. There are several possible solutions for the OP (who seems to have disappeared!):
    You mentioned already running Windows on the Mac. I have found Parallels great, so it should be as simple as setting up his virtual machine, installing his app and copying over the batch files. But he would need to purchase Parallels and have a Windows licence.
    Unix has a much more sophisticated range of scripting facilities than the old DOS batch files, and there are free tools that do a lot of graphics processing.
    Applescript can be used to control Graphic Converter (amongst others) - but OP refers to rendering, and I don't know if GC can do that (in fact I am fairly sure it can't).
    So, to advise wr_uk we really need to know what those bat files are doing!
    AK

  • Convert sapgui.exe to .msi

    Dear Expert ,
    How i can Convert sapgui.exe to  .msi file. So that I can easlly diploy in all my client PC.
    Thanks
    manu

    > Via this method  GUI not installing.Basically we want to diploy SAP GUI in all my Client Workstation via
    > following method . For these method we required  .MSI  file.
    >
    > Using Domain Level group policy in Windows environment.
    >                      or
    > Using SMS Server Software distribution method.
    >                        or
    > Using Windows deployment server as Application package with OS
    in all three methods you can use the above command to install the package.
    And you can create you .msi package out of the Administration tool.
    Markus

  • Creating windows .bat file from within an oracle .prc or .sql file

    I am currently converting a series of batch jobs on a windows server to use an Oracle db rather than a MS sql server db. In ms sql, I could call \mssql80\binn\isql and it allowed me to pass in .prc files and have a .bat file returned. the .bat file is then executed in the calling bat to set variable value returned in the sql call...
    I am thinking I can spool a bat file, however, i do not know how to populate this file with the literals and query values needed to create the bat file which sets values used for further processing in the original calling bat file...
    Does that make sense? any help is greatly appreciated.

    Hi,
    There can be various ways to do this.
    First and simple way is simply spooling out the batch file. Suppose you have a .sql file with all the queries, run the .sql from DOS prompt like this,
    c:\> sqlplus -s username/password@tnsname @mysqlfile.sql
    the contents of mysqlfile.sql can be,
    rem ---------------------
    set echo off feedback off head off
    spool c:\batch_files\mybatch.bat
    select 'start \w ' || win_app_name from mytable ;
    spool off
    rem ----------------------
    exit
    So, you can get the batch file created with desired name in desired directory. The '-s' mentioned in the sqlplus command is important.
    There is another difficult/tedious way, but that can give you exact output. With UTL_FILE package you can write an operating system file from pl/sql code, stored procedure/package. Its look more like C-language code, but is usefull. So, write a sql or stored procedure and create the batch file. For that matter, you can write any type of file, just you can write whatever you want to a file.
    Cheers

  • I need to convert PDF file to Word Document, so it can be edited. But the recognizing text options do not have the language that I need. How I can convert the file in the desired of me language?

    I need to convert PDF file to Word Document, so it can be edited. But the recognizing text options do not have the language that I need. How I can convert the file in the desired of me language?

    The application Acrobat provides no language translation capability.
    If you localize the language for OS, MS Office applications, Acrobat, etc to the desired language try again.
    Alternative: transfer a copy of content into a web based translation service (Bing or Google provides a free service).
    Transfer the output into a word processing program that is localized to the appropriate language.
    Do cleanup.
    Be well...

  • Error while converting class file to exp and jca file

    error while converting *.class file to *.exp and *.jca file
    =====================================================================================================================
    linux-y60u:/home/admin/java_card_kit-2_2_1/samples/src # converter -exportpath "/home/admin/java_card_kit-2_2_1/lib/" com/sun/javacard/samples/HelloWorld 0x00:0x01:0x02:0x03:0x04:0x05:0x06:0x07:0x0b 1.0 -v -applet 0x00:0x01:0x02:0x03:0x04:0x05:0x06:0x07:0x0b:0x01 Identity
    Java Card 2.2.1 Class File Converter, Version 1.3
    Copyright 2003 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
    parsing /home/admin/java_card_kit-2_2_1/samples/src/com/sun/javacard/samples/HelloWorld/HelloWorld.class
    parsing /home/admin/java_card_kit-2_2_1/samples/src/com/sun/javacard/samples/HelloWorld/Identity.class
    error: com.sun.javacard.samples.HelloWorld.HelloWorld: unsupported class file format of version 50.0.
    error: com.sun.javacard.samples.HelloWorld.Identity: unsupported class file format of version 50.0.
    conversion completed with 2 errors and 0 warnings.
    =====================================================================================================================

    i compile a file javacard use this command:
    ===
    javac -source 1.3 -target 1.1 -g -classpath ./classes:../lib/api.jar:../lib/installer.jar src/com/sun/javacard/samples/Identity/Identity.java
    ===
    and try to convert this class use this command
    ===
    /home/xnuxerx/admin/java_card_kit-2_2_1/bin/converter -exportpath "/home/xnuxerx/admin/java_card_kit-2_2_1/lib/" com/sun/javacard/samples/Identity 0x00:0x01:0x02:0x03:0x04:0x05:0x06:0x07:0x0b 1.0 -v -applet 0x00:0x01:0x02:0x03:0x04:0x05:0x06:0x07:0x0b:0x01 Identity
    ===
    result convert:
    ===
    Java Card 2.2.1 Class File Converter, Version 1.3
    Copyright 2003 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
    parsing /home/xnuxerx/admin/java_card_kit-2_2_1/samples/classes/com/sun/javacard/samples/Identity/Identity.class
    converting com.sun.javacard.samples.Identity.Identity
    error: export file framework.exp of package javacard.framework not found.
    conversion completed with 1 errors and 0 warnings.
    ===
    why ??
    please your comment for this problem.
    thank 4 all.

Maybe you are looking for

  • How to extract the details of the stored procedures in the database?

    Dear all, How to extract the details of them? Bst Rgds, Edward

  • Why mail messages appear bigger when sent?

    Hello, When I send an e-mail from Mail, some parts of the signature and the text appear in 16 instead of 12 as set in preferences. It looks normal when I right it but then when someone reply to me I can see that some of the text is bigger that what i

  • Live! 24bit 2.0 + 2.1 speaker se

    Hey guys, I dont know if someones already asked this question, i didnt realy have time to read through the 20 some odd pages of forums haha. My question is simple. I have two speaker systems, one is a 2.0, the other is a 2.. I wanna know if it's poss

  • How to use BEA API Authorization.getRoles?

    I find a bea api class Authorization.getRoles(P13nResource aResource, P13nContextHandler aRequestContext) return Map,I wonder know the P13nResource and P13nContextHandler how to creatre ? because I want to use the API to return Map roles,please tell

  • Why won't sims medieval launch on mac

    Ive bought Sims Medieval and it will load on my dektop Mac but will  not launch.  An option to download an update appears, starts to downoad then gives a timed out 'error 1001' message.  How can I fix it?