NaDer_GenKO Posted December 22, 2007 Posted December 22, 2007 (edited) =====Post Nº1=====Hi,i use Inno setup compiler to install my programs and I'm face this issues1. How can i kill/end a Process(app) in the [Run] section ?2. How can i delete some files in the [Run] section also ?any suggestions please=====Post Nº2=====Please any help guys=====Post Nº3=====Still have a hope . Someone will help me soon Edited December 29, 2007 by Yzöwl
swampy Posted December 28, 2007 Posted December 28, 2007 Try ISTool:ISTool helps you create scripts for Jordan Russell's Inno Setup compiler. Inno Setup is a great compiler for very professional looking setups, and the only disadvantage is that you have to create fairly complex scripts by hand. This is where ISTool comes in. With this application you can edit these scripts in a visual environment, and creating these setup scripts becomes much easier.http://www.istool.org/
NaDer_GenKO Posted December 28, 2007 Author Posted December 28, 2007 (edited) Thanks swampyactually i tried it but i can't find an option in run section can end a process !I think some Function can do this but i don't know pascal Scripting ? Edited December 28, 2007 by NaDer_GenKO
MHz Posted December 28, 2007 Posted December 28, 2007 This test script demonstrates using the CMD interpreter to del a file in the [Run] section. With closing a process depends on having something like TaskKill.exe available for use on your Windows OS as not all have it.[Setup]AppName=TestAppVersion=1.0VersionInfoVersion=1.0AppVerName=Test 1.0OutputBaseFilename=Test 1.0UninstallDisplayName=TestVersionInfoDescription=Test SetupDefaultDirName={pf}\TestDefaultGroupName=TestSolidCompression=trueAllowRootDirectory=trueDirExistsWarning=noAllowNoIcons=trueAlwaysShowDirOnReadyPage=trueAlwaysShowGroupOnReadyPage=trueWizardImageFile=compiler:wizmodernimage.bmpWizardSmallImageFile=compiler:wizmodernsmallimage.bmp[Files]Source: C:\WINDOWS\NOTEPAD.EXE; DestDir: {app}[Run]Filename: cmd; Parameters: /c del notepad.exe; WorkingDir: {app}; StatusMsg: Deleting files...; Flags: runhidden postinstall; Description: "Run CMD to delete notepad.exe in the ""{app}"" directory"
NaDer_GenKO Posted December 28, 2007 Author Posted December 28, 2007 =====Post Nº1=====Its very simple script to install yohoo messenger.I want use a command to end the process instead of run a .cmd file=====Post Nº2=====Thanks MHzWorking very well to delete the file So i can use this in the [Run] section to kill a process Filename: cmd; parameters: /c taskkill /f /im notepad.exe;Flags: runhiddenand work with me. Thanks MHzYahooSetup.iss
MHz Posted December 29, 2007 Posted December 29, 2007 So i can use this in the [Run] section to kill a processIt looks OK to me. TaskKill is a standalone file so you should be able to run it without using CMD to do it.Example scriptAppName=TestAppVersion=1.0VersionInfoVersion=1.0AppVerName=Test 1.0OutputBaseFilename=Test 1.0UninstallDisplayName=TestVersionInfoDescription=Test SetupDefaultDirName={pf}\TestDefaultGroupName=TestSolidCompression=trueAllowRootDirectory=trueDirExistsWarning=noAllowNoIcons=trueAlwaysShowDirOnReadyPage=trueAlwaysShowGroupOnReadyPage=trueWizardImageFile=compiler:wizmodernimage.bmpWizardSmallImageFile=compiler:wizmodernsmallimage.bmp[Files]Source: C:\WINDOWS\NOTEPAD.EXE; DestDir: {app}[Run]Filename: {app}\NOTEPAD.EXE; Flags: nowaitFilename: taskkill; Parameters: /f /im notepad.exe; WorkingDir: {sys}; Flags: runhidden postinstall; Description: Close Notepad
NaDer_GenKO Posted December 30, 2007 Author Posted December 30, 2007 That is very clear and much better Thanks MHz. for the Explanation and the Script
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now