Running AddOnRegDataGen.exe in batch

I am running AddOnRegDataGen.exe in batch mode using the command line
“AddOnRegDataGen.exe MyAddOn.xml 1.0 setup.exe setup.exe MyAddOn.exe”.
MyAddOn.xml has the following contents:
<AddOnInfo partnernmsp="MC" contdata="[email protected]" addonname="My AddOn" addongroup="M" esttime="120" instparams="/z" uncmdarg='/z"uninstall" /x' partnername="MyCompany ASA" />
It works OK except from one detail; I cannot figure out how to set Estimated Uninstall Time in the ard-file. The esttime value in the XML-file only affects Estimated Install Time, while Estimated Uninstall Time still has the value 0.
Does anyone know how to do this?
regards
Vegar

Hi Vegar,
There is a package called B1DE you can download from B1 SDN page -> SDK Tools. This package contains among others a simple installer creating automatically for you the .ard and setup.exe for your addon.
Please run the Simple installer wizard from Visual Studio .NET (2003 or 2005) and you will have a .bat and a .xml files automatically generated in a directory called AddOnRegDataGen. This 2 files contains all you need to run the AddOnRegDataGen.exe in batch mode.
Here you have a sample of the .bat:
"AddOnRegDataGen.exe" "B1AddOnInstallerNET5.xml" "1" "B1AddOnInstallerNET5.exe" "B1AddOnInstallerNET5.exe" "AddOn.exe"
And the B1AddOnInstallerNET5.xml pointed from the .bat:
<AddOnInfo partnernmsp="SAP" contdata="Support" addonname="Addon1" addongroup="M" esttime="180" instparams="" uncmdarg="/x" partnername="SAP" unesttime="180" />
Hope it helps
Trinidad.

Similar Messages

  • AddOnRegDataGen.exe in Batch File

    I'm trying to follow these instructions from Frank Moebius:
    please note that AddOnRegDatGen is batch capable!!!
    Here you go:
    Calling convention (cmdline parameters):
    AddOnRegDataGen.exe <raw xml> <InstallerVersion> <Installer> <Uninstaller> <Add-On-Exe>
    Sample:
    AddOnRegDataGen.exe MySampleAddOn.xml 1.0 SampleSetup.exe SampleSetup.exe MySampleAddOn.exe
    The „<raw xml>“:
    <AddOnInfo partnernmsp="<Your Namespace>" contdata="my cont data" addonname="My Add-On" addongroup="M" esttime="300" instparams="" uncmdarg="" partnername="My Comp" />
    Regards,
    Frank
    When I run AddOnRegDataGen.exe as described above, it fails without giving any indication why.
    I thought perhaps Frank had only given part of the XML file as an example, and so changed mine to be a full one, including the <?xml?> header, but still AddOnRegDataGen.exe fails.
    Does anyone still do this? If you have it an it works with a modern SDK, can you give me an example XML file and batch command line that will work?
    I'm writing for Business One version 8.81, using the SDK running on Windows XP.

    Hi Charles,
    If you use one of the installers from the B1DE then it automatically creates batch and xml files that can be used to execute the AddOnRefDataGen program to generate your ard file.
    Here's a sample batch file
    "D:\Program Files\SAP\SAP Business One SDK\Tools\AddOnRegDataGen\AddOnRegDataGen.exe" "D:\SDK Development\MyAddonProject\AddOn_Installer\AddOnRegDataGenFile\AddOn_Installer.xml" "8.80.00.05" "D:\SDK Development\MyAddonProject\AddOn_Installer\bin\AddOn_Installer.exe" "D:\SDK Development\MyAddonProject\AddOn_Installer\bin\AddOn_Installer.exe" "D:\SDK Development\MyAddonProject\bin\Release\MyAddonProject.exe"
    So the batch file executes the AddOnRegDataGen app and passes it the following parameters:
    1) The location of the xml file that contains the addon settings
    2) The version number
    3) The path to the addon installer
    4) The path to the addon uninstaller (can be the same as the installer or a different executable)
    5) The path to the addon executable
    Obviously all of these paths need to be correct for your system otherwise no ard file will be generated.
    Your example xml file, from Frank, looks correct and doesn't need xml tags (although there is now another attribute called unesttime which is the estimated uninstall time, similar to esttime).
    Kind Regards,
    Owen

  • Problem with running rhcl.exe in batch file

    Hi,
    I'm running Robohelp 8 and trying to use rhcl.exe to generate multiple help projects. I'm having a problem with the folder where the rhcl.exe is generating the web help. It seems to ignore the "-o" switch and gets the generation folder from the project all the time. As you can see from the log file below, the exe appears to pick up the "-o" path  (......\Test\Opportunities.htm), but writes the generated files to the path in the project (.....\Opportunities\index.htm).
    Anyone else come across this problem?
    MY BATCH FILE IS:
    "C:\Program Files\Adobe\Adobe RoboHelp 8\RoboHTML\rhcl.exe" "C:\Data\RoboHelp\RoboHelp Projects\SubProjects\SupplierPortal\Opportunities\Opportunities.xpj" -l Webhelp -o "C:\Data\RoboHelp\GeneratedWebHelp\SupplierPortal\mergedProjects\Test" -g "C:\Data\RoboHelp\GeneratedWebHelp\Generate.log"
    THE LOG FILE CREATED IS:
    Adobe (R) RoboHelp Project Command Line Compiler version 8.0.0.203
    Copyright (C) 2006-2007, Adobe Systems Incorporated and its licensors. All rights reserved.
    Project: C:\Data\RoboHelp\RoboHelp Projects\SubProjects\SupplierPortal\Opportunities\Opportunities.xpj
    Layout: WebHelp.
    Output: C:\Data\RoboHelp\GeneratedWebHelp\SupplierPortal\mergedProjects\Test\Opportunities.htm.
    Scanning project for compilation....
    Scanning finished.
    Warning: No baggage file description.
    Starting compilation...
    WebHelp preprocessor 8.0.0.203
    Compiling C:\Data\RoboHelp\GeneratedWebHelp\SupplierPortal\mergedProjects\Opportunities\index.htm ...
    Preparing to create WebHelp...
    Clearing output folder...
    Preparing files for WebHelp...
    Copying files...
    Updating files...
    Finished preparing in 1 sec(s)
    Initializing compiler...
    Generating WebHelp 5.50 (8.0.0.203)...
    Processing TOC data...
    Processing Context-sensitive-Help data...
    Updating HTML topics...
    Updating opportunities/e-auctions/how_do_i/creating_a_new_bid.htm...
    Updating opportunities/e-auctions/how_do_i/creating_a_response.htm...
    Updating opportunities/e-auctions/how_do_i/viewing_auction_details.htm...
    Updating opportunities/e-auctions/how_do_i/viewing_bid_details.htm...
    Updating opportunities/e-auctions/how_do_i/viewing_a_list_of_auctions.htm...
    Updating opportunities/e-auctions/how_do_i/withdrawing_from_an_auction.htm...
    Updating opportunities/e-auctions/screen_level_help/list_of_auctions.htm...
    Updating opportunities/e-auctions/screen_level_help/new_bid.htm...
    Updating opportunities/e-auctions/screen_level_help/view_auction_details.htm...
    Updating opportunities/e-auctions/screen_level_help/view_bid_details.htm...
    Updating opportunities/e-auctions/introduction_to_e-auctions.htm...
    Updating opportunities/introduction_to_opportunities.htm...
    Finished updating HTML topics in 0 sec(s) : total 12 topic(s).
    Processing Full-text-search data...
    Finished processing Full-Text-Search data in 0 sec(s)
    Applying WebHelp 5.50 Template...
    Finished applying Template in 1 sec(s)
    Processing Mark of the Web...
    Finished compiling WebHelp in 3 sec(s)
    Compilation complete.

    Hi again
    And that's why we call them bugs.
    Did you remember to report it as same to Adobe? The link is in my sig.
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML within the day - $24.95!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • Running an exe from within Oracle WebLogic 10g R3 does not find dll

    Hi,
    I am facing a strange issue with Oracle WebLogic 10g R3.
    I use the code as shown in Listing 1 below to run a windows based application exe (batch job) from within my web application hosted on Oracle WebLogic 10g Release 3.
    Note that this code woks fine on Tomcat 6.x and OC4J (JDeveloper TP4).
    The exec gets executed but the log of the exe program shows it could not load certain DLLs.
    Note that these DLLs are in the same directoy as the Batch program and this directory is in the PATH.
    Running through simple Java Program Successful*
    When I run the same program from a java program it runs successfully. So this means some WebLogic environment does not get set properly.
    Running directly BatchProg.exe rather than cmd.exe fails*
    Also note that when I run the exe directly e.g. BatchProg.exe rather than through cmd.exe it gives me a error the system did not find the file specified.
    CreateProcess error=2, The system cannot find the file specified with cause java.io.IOException: CreateProcess error=2, The system cannot find the file specified
    Listing 1:*
    String[] commandArgs = new String[|http://forums.oracle.com/forums/] { "cmd.exe", "/C", "BatchProg.exe \"param1\" \"param2\" " },null , l_workingDir)
    Runtime rt = Runtime.getRuntime();
    Process proc;
    proc = rt.exec( commandArgs, envParams, workingDir );
    ProcessIO errStream = new ProcessIO( proc.getErrorStream(), "ERROR");
    ProcessIO outStream = new ProcessIO( proc.getInputStream(), "OUTPUT");
    errStream.start(); // process any errors from the command
    outStream.start(); // process any output from the command
    System.out.println("Error=" +errStream);
    System.out.println("Out" + outStream);
    return (p_waitToFinish ? proc.waitFor() : this.SUCCESS);

    OK.
    I have posted this on the WebLogic Forum.
    Thanx.

  • Closing Console window while running Java application from Batch file

    Hi all,
    I have made a small application using Java swings,now i have made a jar file of my application and calling this jar file through batch file,when user clicks on that batch file it runs "java -jar applicationname.jar" command,but problem is that when i run that file from batch file it opens Dos console window at baclk of the screen which looks weird for a desktop application,i dnt want that Dos console window visible at the backend while my application is running,i have searched regarding this on google but found nothing usefull,if anybody can please help regarding that it will be a great releif for me,i have been stuck on this problem from last two days.
    Thanks.
    Simer

    warnerja wrote:
    georgemc wrote:
    warnerja wrote:
    start java -jar applicationname.jar
    That'll pop up another consoleI'm under the impression that the console window he is seeing is the one which cmd.exe opens when it is executing the batch file. And that batch file won't return until the java process has completed because he didn't start it in the background to let the batch file continue and terminate.
    So I don't think just simply substituting java with javaw will do much good either. Still think he needs a "start" command in that batch file.
    So now he can try:
    start java -jar ...
    or
    start javaw -jar ...Fair point

  • How does one run a *.exe with a Java program?

    Hi,
    I'm looking for a way to run an executable (*.exe) or batch file (*.bat) from within a Java program.
    Any suggestions, leads, or examples appreciated.
    Thanks!

    Runtime.getRuntime.exec("pathTo/yourapp.exe");
    For any type of interpreted scripts, the interpreter should be added:
    Runtime.getRuntime().exec({ "command.com", "mybat.bat"});
    or
    Runtime.getRuntime().exec({"/bin/sh", "configure.sh"});

  • I want to run my .exe file in same time when Labview started to run

    Somebody know, how do it?

    Slonbob wrote:
    Yes, but I want run LabVIEW, then run my exe backgroung
    Right, so run a batch file instead of LabVIEW.
    Or if you must run "LabVIEW.exe" rename "LabVIEW.exe" to "LabVIEW Backup.exe" then make an EXE that just runs "LabVIEW Backup.exe" then your program and name it LabVIEW.exe.

  • Run an .exe from Portal?

    I'm new to Portal and was trying to find out if it is possible to run an exe on a wintell box from portal via a button or link? Any info would be appreciated. Thanks!

    Hi,
    you can only do this if the file is in a directory that is accessable through explorer.
    then, if you create a batch file that runs the exe file. you can create a hyperlink to the explorer address of the batch file.
    exe files will ask if you want to download or run, bat files just run.
    regards Michael

  • AddOnRegDataGen.exe of version 2004 and 2005

    Dear Experts/Gurus,
    Are there any differences between AddOnRegDataGen.exe of version 2004 and 2005 especially for add-on developed
    by partner or customer ? if yes, what should I do to my add-on ? I just did the following steps:
    1. Recompile the add-on after put identifier string generated using add-on identifier generator in SBO 2005A
    2. Creating registration file using AddOnRegDataGen.exe of version 2005 after created installer
    3. Regiter the add-on using add-on administration
    Did I miss something beside the above steps ? because the add-on can not run in the SBO 2005. The add-on is developed using SDK SBO 2004A. I appreciate your answers. TIA
    Rgds,

    Hi Steve,
    Some new fields were added between versions 2004 and 2005. But if you open the AddOnRegDataGen.exe window you will be able to see if something is not filled in your addon.
    Where are you having problems? While installing or when trying to run your addon? What is the error message?
    The steps you did are right:
    1. Recompile addon with 2005 references
    2. Create installer.exe
    3. Create .ard
    4. Register addon in B1
    AddOnInstallAPI.dll has also changed between 2004 and 2005 versions. It should work without any changes but you better change your installer to avoid problems in following versions.
    Are you using B1DE to generate your installer? You can download B1DE tools from B1 main page, SDK tools page.
    Hope it helps
    Trinidad.

  • Run Message Analyzer From Batch File

    New to Message Analyzer trying to run it from a batch file but have not found any good examples. Can anyone please provide some help? Trying to use C:\Program Files\Microsoft Message Analyzer>messageanalyzer.exe /logmode  but it just opens the GUI
    I need it to run command line only and output to a file of my choice.
    Raymond McAuliffe

    PowerShell is the way we support automation with Message Analyzer. Check out this blog:
    http://blogs.technet.com/b/messageanalyzer/archive/2013/10/29/using-powershell-to-automate-tracing.aspx

  • Run/Start .Exe file in ColdFusion

    Hi guys,
    am trying to open up a .exe file like notepad or whatever windows program with using <cfexecute> but seems it doesn't work at all. I'm able to write the command in cmd and run the exe file but when i put the command in cfexecute so i get nothing.
    here is the command i would like to run:
    "C:\Program Files (x86)\Vc\vc.exe" -e "\Crystal\BF_Faktura_D.rpt"
    altso, run/start a simple .exe windows program. I think there is something about security access from CF server or something like that.
    ANY HELP?

    this is what i have in my .bat/.cmd file:
    "C:\Program Files (x86)\Vc\vc.exe" -e "\Crystal\BF_Faktura_D.rpt"
    And i would like to remove that batch file totaly and run the command directly from CF to be able to make a HTML form and put some inputs through that form.
    here you can see what i really do in bat file:
    echo parameters:
    echo      fakturagruppe  : %1
    echo      fakturanr(fom) : %2
    echo      fakturanr(tom) : %3
    "C:\Program Files (x86)\Visual CUT 11\Visual CUT.exe" -e "\BF_Faktura_D.rpt" "Parm1:%2>>>%3>>>3" "Parm2:false" "Parm3:%1" "Parm4:false"
    "Export_File:\\bf-visma02\vismadata\vbdoc\F0001\Fakturakopi\IC{BF_Faktura_S.InvoNo}.pdf" "Export_Format:Adobe Acrobat (pdf)"
    I would like to open Visual cut.exe through CF to be able to make thos parameters in an HTML form instead of inputs from .bat file as you see!

  • Error while running sawserver.exe file

    Hi All ,
    I installed OBIEE 11.1.5 in my machine and Database is in different machine (For RCU) .OBIEE reports are working fine but, I tried to run sawserver.exe file to register new instanceconfig file to implement multiple rpds and Catalogs in OBIEE 11G by referring the below link.
    http://rnm1978.wordpress.com/2009/08/25/multiple-rpds-on-one-server-part-2-presentation-services/
    Command that I used is : sawserver.exe -c D:\Middleware\instances\instance1\config\OracleBIPresentationServicesComponent\coreapplication_obips1\instanceconfigdemo.xml
    Am getting the Error : the procedure entry point long jmp count not be located in the dynamic link library orauts.dll
    Thanks in Advance .

    Hi,
    How can i do it in OBIEE 11G? Any help will be grateful
    Regards,
    Joni

  • T400 with ATI Radeon HD 3400. Driver not found after running ImageX.exe /Capture

    Hello,
    I was able to reproduce the following problem on a T400.
    - unattended installation of WXP-SP3 (slipstreamed)
    - reboot
    - install latest ATI driver from Lenovo/IBM site (8.503.2.2-080818a-069536C)
    - reboot
    At this point, the video driver is well configured.
    - Reboot once or twice, video driver still good.
    - Boot the T400 on WinPE 2.0
    - Capture the C:\ to a network file share using ImageX.exe (from Microsoft's WAIK 1.1)
    - Shutdown the T400, and reboot on C:\
    - At this point, video driver is "lost". The Hardware Wizard says "new driver found", but stick with default VGA.
    Then I get an ATI error telling the driver is missing or not well installed.
    - When rebooting several times, suddenly the card is back in the device manager as a Radeon HD 3400.
    (without re-installing the driver ...)
    Anyone has an explanation ?
    Please not I did not run "sysprep.exe" before capturing with ImageX.exe
    stefan

    Update on this problem.
    After running "sysprep.exe -mini -quiet -reseal -shutdown", I ran the "ImageX.exe /capture".
    After rebooting the T400, the ATI driver was fine.
    Either is a coincidence (but I could repeat it 3 times...) or it is not advised to run "ImageX.exe /Capture" on a non-syspreped Windows XP.
    I know that a non-syspreped Vista system has a limitation if captured with ImageX.exe. But I am not aware on any limitation with XP.
    Stefan

  • I can download firefox, but when I try to run it, windows 7 asks me to select a program type to run the *.exe file

    I am running windows 7 with IE 10. I want to switch to Firefox as my browser. I am able to download the Firefox Setup 22 0 exe, but when I try to open or run it, windows prompts me to "choose the program you want to use to open this file". This happens with both the Firefox Setup Stub 22 0 exe (274kb) and the Firefox Setup 22 0 exec (21,239Kb). I can't find any program on Windows to run this exe. Same thing happens when I try to run the troubleshooter exe.

    Hello annsboland
    Do you have also problem with others exe files ?
    try to create a new user account in Windows 7 and check it again
    see if the next articles in the links helps to create the new account:
    http://www.bleepingcomputer.com/tutorials/create-new-user-account-in-windows-vista-7/
    http://www.pcadvisor.co.uk/how-to/windows/3326039/how-add-new-user-account-in-windows-7/
    thank you

  • Requirement is to run CMD.EXE under the Local System Account. So that we can map a network drive to be used by a windows service, which will be created by command: - net use z: \\servername\sharedfolder /persistent:yes

    Environment:
    OS:  Windows 7 32/64 bit, Windows 2008 Server 64
    bit/ Windows 2012 Server 64 bit
    Priority:
    - Critical
    Requirement: - Since
    the Windows Service is running under the Local System Account, we would like to emulate this same behaviour.
    Basically, we would like to run CMD.EXE under the Local System Account. So that we can map a network drive to be used by a service using following
    command
    net use z: \\servername\sharedfolder /persistent:yes.
    Already Attempt:
    We tried to launch the CMD.exe using the DOS Task Scheduler AT command.  Here’s a sample command:
    AT 10:36 /interactive cmd.exe
    But I received a warning that “due
    to security enhancements, this task will run at the time excepted but not interactively.”
    It turns out that this approach will work for XP, 2000 and Server 2003 but due to session isolation
    Interactive services no longer work on Windows 7, Windows Server 2008 and above.
      2.  We
    tried to create a secondary Windows Service via the Service Control (sc.exe) which merely launches CMD.exe.
    <Drive>:\sc create RunCMDAsLSA binpath= "cmd" type=own type=interact <Drive>:\sc
    start RunCMDAsLSA
    In this case the service fails to start and results it the following error message:
    FAILED 1053: The service did not respond to the start or control request in a timely fashion.
      3. One
    suggestion, we found to launch CMD.exe via a Scheduled Task, but
    it is not giving any option to launch CMD.exe in interactive mode; so that I can map network drive using net command.
      4. I read an article, which
    demonstrates the use of PSTools from SysInternals. I launched the command line and executed following command
    psexec -i -s cmd.exe
    PSTools worked fine, but It seems that in scope of Sysinternals Software License
    Terms. You may not "use the software for commercial software hosting services."
    Application will deploy on client, which will be like commercial,
    so we are not able to use PSTools.         
    Kindly assist us for achieving the requirement. We have tried all the ways, but nothing is working for us. Kindly suggest.
    I will be really thankful.

    Hi Sir,
    Nothing worked from above for us. You can see our remarks on posted query.
    That’s why, we posted on forum.
    And there will not be any vulnerability, because, if we will use "net
    use ..."
    in network domain; definitely,
    we will provide username and password of mapped drive system.
    And, that system, itself is given by client; so that, there must not be any vulnerability; they are ready to provide user name and password.
    We need a way; by which we can complete the requirement. Kindly assist.
    Regards,
    S. P. Singh

Maybe you are looking for