User Tools

Site Tools


userspace:jdigitalsimulator

JDigitalSimulator 1.1.7

By — adlerweb 2013/04/17 13:59

Tree:

âââ delsub.ins
âââ files
â   âââ Changes.txt
â   âââ JDigitalSimulator.jar
â   âââ jds.ico
â   âââ plugins
â   â   âââ ExamplePluginFull.java
â   â   âââ ExamplePluginQuick.java
â   âââ start.cmd
âââ jdigitalsimulator.png
âââ setup.ins
âââ uninstall.ins

setup.ins

[Aktionen]
requiredWinstVersion >= "4.10.3"
Message "installing JDigitalSimulator ..."
DefVar $ExitCode$
DefVar $UninstallCommand$
DefVar $DisplayName$
 
if not(HasMinimumSpace ("%SYSTEMDRIVE%", "20 MB"))
	LogError "Not enough space on %SystemDrive%, " + $MinimumSpace$ + " on drive %SystemDrive% needed for Java 1.6"
	isFatalError
	; Stop process and set installation status to failed
endif
 
ShowBitmap "%scriptpath%\jdigitalsimulator.png"
 
if FileExists("%ScriptPath%\delsub.ins") 
	comment "start uninstall"
	sub "%ScriptPath%\delsub.ins"
endif
 
comment "installing"
Files_copy
LinkFolder_jds
 
[Files_copy]
copy -sV "%SCRIPTPATH%\files\" "%ProgramFilesDir%\JDigitalSimulator\"
 
[LinkFolder_jds]
set_basefolder common_programs
set_subfolder "JDigitalSimulator"
set_link
  name: JDigitalSimulator
  target: %ProgramFilesDir%\JDigitalSimulator\start.cmd
  working_dir: %ProgramFilesDir%\JDigitalSimulator\
  icon_file: %ProgramFilesDir%\JDigitalSimulator\jds.ico
end_link

uninstall.ins

[Aktionen]
Message=deinstalling JDigitalSimulator..
DefVar $UninstallCommand$
DefVar $DisplayName$
DefVar $ExitCode$
 
if FileExists("%ScriptPath%\delsub.ins")
	comment "start uninstall"
	sub "%ScriptPath%\delsub.ins"
endif
 
[Winbatch_sun_uninstall]
$UninstallCommand$

delsub.ins

;4.1 Build 1
if FileExists("%ProgramFilesDir%\JDigitalSimulator\start.cmd") 
	Files_del
	LinkFolder_del
endif
 
[Files_del]
delete -s "%ProgramFilesDir%\JDigitalSimulator\"
 
[LinkFolder_del]
set_basefolder common_programs
delete_subfolder "JDigitalSimulator"

start.cmd

java -jar JDigitalSimulator.jar
userspace/jdigitalsimulator.txt · Last modified: 2021/08/23 08:37 (external edit)