Creating .exe from command line in installshield - file

can we make .exe file from command line in installshield, and that .exe file will open a text file? I know how to create .exe file from Install shield UI but i'm not finding any stuff on creating an exe from command line using installshield.

If your InstallShield project has release (in my examples release called "Othello Beta") which produces .exe package and you would like to build it from command line, you need to use automation. For this you would use:
ISCmdBld.exe: Hot to use ISCmdBld.exe and example would be:
ISCmdBld.exe -p "C:\InstallShield 2012 Spring Projects\My Othello Project\Othello.ism" -r "Othello Beta" -c COMP -a "Build 245"
IsSABld.exe: This will looks like the following:
IsSABld.exe" -p "C:\InstallShield 2012 Spring Projects\My Othello Project\Othello.ism" -b "C:\InstallShield 2012 Spring Projects\My Othello Project" -r "Othello Beta"

Related

Create local SQL Server database from installation package for UWP

I'm trying to create an installation package that will create a local database for my UWP. Currently I'm using NSIS to create the package.
I developed my UWP with the idea that some users might want to use a tablet or phone from time to time, but the app will mainly be used on desktops and my installer is meant for desktop installations.
I first tried using the SQLLocalDB Utility , but I found out it's not supported in UWP. I eventually started using SQL Server media files to install SQL Server Express and I think that's the way I want to go (I want a local database that's a little more robust than SQLite and it seems to be my best option).
I don't know if my current issue is with NSIS or SQLCMD (which I use in the installer to build the database). Here's the part of my .nsi that I'm using to build the database:
OutFile "db_installer.exe"
!include psexec.nsh
!include LogicLib.nsh
Section
InitPluginsDir
SetOutPath $PLUGINSDIR
File /r SQLCMD
ExecWait '"$PLUGINSDIR\SQLCMD\sqlcmd.exe" -S Cmp-000000\SQLEXPRESS -i createdbonfile.sql -o output.txt'
FileOpen $4 "$PLUGINSDIR\SQLCMD\output.txt" r
FileSeek $4 0
ClearErrors
${DoUntil} ${Errors}
FileRead $4 $1
DetailPrint $1
${LoopUntil} 1 = 0
FileClose $4
# default section end
SectionEnd
At one point I got the installer to at least print the SQL errors. Since then, I thought I only removed some calls to "DetailPrint". Now, however, SQLCMD still creates the output file but doesn't put anything in it. And of course the biggest issue is that my SQL commands are not being executed.
I was able to successfully build the local database I wanted by using the SQL Server media files and the SQLCMD utility (as mentioned in the question). The issue I had was with my .nsi code. I thought that I was reading the output.txt file I created using SQLCMD in the intaller, but it turns out I was actually reading a file I made in a practice run and accidently loaded to the installer while compiling. With that realization, it soon came obvious that I was missing the paths to the files I was referencing. Here's the code again with the appropriate files paths:
OutFile "db_installer.exe"
!include psexec.nsh
!include LogicLib.nsh
Section
InitPluginsDir
SetOutPath $PLUGINSDIR
File /r SQLCMD
ExecWait '"$PLUGINSDIR\SQLCMD\sqlcmd.exe" -S Cmp-000000\SQLEXPRESS -i $PLUGINSDIR\SQLCMD\createdbonfile.sql -o $PLUGINSDIR\SQLCMD\output.txt'
FileOpen $4 "$PLUGINSDIR\SQLCMD\output.txt" r
FileSeek $4 0
ClearErrors
${DoUntil} ${Errors}
FileRead $4 $1
DetailPrint $1
${LoopUntil} 1 = 0
FileClose $4
# default section end
SectionEnd
You can connect to a remote SQL Server, for example on Azure. Creating LocalDB from UWP won't be supported, as it requires LocalDB to be installed on the target machine.
If you need a local database, then SQLite will be the best choice.

'tar' is not recognized as an internal or external command

I am trying to extract a zip file in Windows 10 using a batch script.
It a simple command:
tar zxf "logstash-5.4.0.tar.gz"
ECHO "installed"
But I am getting following error:
'tar' is not recognized as an internal or external command
I have seen that I have to install the tar but how can I do that?
How can I do this?
EDIT Tar is pre installed in windows or we have to externally add it? Still how can i extract without using third party tool.
You can download Tartool Application in your desktop and paste it into
C:\Windows\system32\
For eg:-(C:\Windows\system32\tartool.exe)
By doing this it work as internal command when you want to extract your file you can simply use
C:>TarTool.exe D:\sample.tar.gz ./
For more commands you can read documention part of that Tool
Starting windows 10 build 17063, TAR is an inbuilt tool and no need to install it separately. MSDN link
For example, to uninstall a file named XYZ.zip you can execute the following in Command Prompt.
tar -xvf XYZ.zip

BIRT runtime 4.6.0 batch file not running

Trying to run a batch file on the latest version of BIRT. Upgraded from 3.7.1 to 4.6.0. The .bat file is exactly the same (other than changing the BIRT_HOME system variable).
The steps I took were as follows:
Downloaded 4.6.0 from an official mirror
Copied 2 jar files across into the BIRT_HOME/ReportEngine/lib folder. These jar files are jtds.jar and ojdbc6.jar so I can connect to an external database
Copied over my .bat file, report design file and report properties file
Edited the .bat file to give the correct location to BIRT_HOME
Executed the .bat file from command line
The error I get is:
Could not find or load main class org.eclipse.birt.report.engine.api.ReportRunner
The contents of my .bat file are:
#echo off
set BIRT_HOME=C:\birt-460\ReportEngine\
call %BIRT_HOME%genReport.bat -m runrender -o "output.PDF" -f PDF -F "reportproperties.properties" "reportproperties.rptDesign"
I can confirm that the following JAR file is present in my /lib folders: org.eclipse.birt.runtime_4.6.0-20160607.jar
The part I'm struggling with is that these steps work in 3.7.1 and 4.2.2, but not 4.6.0
Anyone got any ideas?
This is a bug in the 4.6.0 BIRT release.
As a workaround, simply remove the ECLIPSE_.RSA and ECLIPSE_.SF, from the META-INF/ folder in org.eclipse.birt.runtime_4.6.0-20160607.jar, which is in $BIRT_HOME/ReportEngine/lib/.
Refs: https://www.eclipse.org/forums/index.php/t/1086829/
This is fixed in the BIRT 4.9 runtime.
https://projects.eclipse.org/projects/technology.birt

Batch file to run JMeter script

I have a .jmx file of all of my test plans and I want to create a batch file. When I click that, everything starts and ends automatically. So that I can provide it to my client as well to verify that I have performed the load test on his website. How can I achieve this?
jmeter does not support running batch of .jmx files as document part 2.4.3 (Command Line Mode) gives to us.
I would recommend you to try 2 approaches:
1) to follow best practices of running jMeter in non GUI mode.
In accordance to this approach you are expected to use the command
jmeter -n -t D:\TestScripts\script.jmx -l D:\TestScripts\scriptresults.jtl
Where the pareameters:
-n [This specifies JMeter is to run in non-gui mode]
-t [name of JMX file that contains the Test Plan]
-l [name of JTL file to log sample results to]
-j [name of JMeter run log file]
2) to use any cloud service for running your .jmx file.
BlazeMeter (http://blazemeter.com/) worked for me fine.
One can adjust the test plan settings.
Testing results can be seen on “Load Report” tab as soon as test finishes.
For detalization one can follow Getting Started: Scripting with JMeter steps.
Hope this works for you.
Just write the following command in a text file and save this file as SomeName.bat
#ECHO OFF
jmeter -n -t "Your .jmx file path" -l "Your .jtl file path"
For example:
#echo off
jmeter -n -t F:\DEV\WORKSPACE\buyer.jmx -l F:\DEV\WORKSPACE\output.jtl
After saving click on that bat file. The test plan result will be stored into .jtl file.
Note: Make sure you put this bat file into JmeterinstallationDirectory/bin folder.

Sencha: How to generate all-classes file

Morning,
My production build seems to be missing getOrientation function.
It seems that sencha-touch-all.js is not being copied into the build folder.
After doing much forum reading, etc, I have discovered that I actually need to use Cmd to create an all-classes.js file.
According to http://docs.sencha.com/touch/2.2.0/#!/guide/building, the following command should do the job:
sencha create jsb -a index.html -p app.jsb3
When I run this in command from within the root of my app (where index.html lives), I get the following error:
[ERR] Unknown command: "create"
I have tried using commands generate or build instead of create but they do not work either.
So, why does it not recognise that command?
When I run the command from within my SenchaSDKTools folder, but use the full path/to/app,
it seems to accept the command, but does not create a file.
I have sencha touch 2.2.1 and Cmd 3.1.2.342
In order for you to use sencha create jsb command, you have to:
Install Sencha SDK Tools
Mac - http://cdn.sencha.io/sdk-tools/SenchaSDKTools-2.0.0-beta3-osx.app.zip
Windows - http://cdn.sencha.io/sdk-tools/SenchaSDKTools-2.0.0-beta3-windows.exe
Open terminal and change directory to where the Sencha SDK is installed.
cd /Applications/SenchaSDKTools-2.0.0-beta3/
Generate a JSB3 file by executing the ff. command:
/sencha create jsb -a index.html -p app.jsb3
wherein:
-a (required) The location of the HTML file containing the scripts you want to include
-p (required) The location where the output .jsb3 file should be created
This scans your index.html file for all framework and application files that are actually used by the app, and then creates a JSB file called app.jsb3.
SOLVED:
It was working fine from within the SenchaSDKtools folder. I hadn't told it the right place to create the file.

Resources