Table of Contents

Vargus Genius

1. Download Vargus Genius from here: http://www.vargus.de/vardex/template/default.aspx?pCatId=9 (download the Setup.exe-Version)
2. Unzip the zip-File to an folder on your Desktop
3. Install it with the setup.exe
4. Go to “C:\Users\YOUR_USERNAME\AppData\Local\Apps\2.0\EC2C7GHM.D01\1XXZLK1V.CE2” (or similar), there you find a folder named varg..tion…. Copy this folder to CLIENT_DATA and rename it to vargusgenius
5. Make an lnk-File to “C:\Program Files (x86)\vargusgenius\VargusGen.exe” and safe it in CLIENT_DATA in the folder “verknuepfung” (we will install Vargus Genius once for all users in “C:\Program Files (x86)\vargusgenius\”)

Download: installable opsi package (~20 MiB) (with lnk-File)

Tree:
|-- vargusgenius (this is the whole folder varg..tion.... from AppData\Local\Apps\...)
|   |-- data
|   |   |-- _Data.txt
|   |   |-- clsDatabase.gz
|   |-- de
|   |   |-- System.Windows.Interactivity.resources.cdf-ms
|   |   |-- ...
|   |-- en
|   |   |-- ...
|   |-- ...
|   |   |-- ...
|-- verknuepfung
|   |-- VargusGen.lnk
|-- vargusgenius.png
|-- setup.ins
|-- uninstall.ins
`-- delsub.ins

control file

[Package]
version: 1
depends: 
incremental: False
 
[Product]
type: localboot
id: vargusgenius
name: Vargus Genius
description: 
advice: 
version: 1.6.7.2
priority: 0
licenseRequired: False
productClasses: 
setupScript: setup.ins
uninstallScript: uninstall.ins
updateScript: 
alwaysScript: 
onceScript: 
customScript: 
userLoginScript: 
 
[Changelog]
varusgenius (1.6.7.2-1) testing; urgency=low
  * Initial package
 -- fjelk <admin@duedal.ch>  Tue, 18.12.2015 14:00:00 +0000

setup.ins

[Initial]
ExitOnError=true
StayOnTop = true
 
[Actions]
SetLogLevel = 6
 
DefVar $ProductId$
DefVar $ProductName$
DefVar $InstallDir$
 
; ----------------------------------------------------------------
; - Please edit the folling values                               -
; ---------------------------------------------------------------- 
Set $ProductId$ 	  = "vargusgenius"
Set $ProductName$ 	  = "Vargus Genius 1.6.7.2"
Set $InstallDir$      = "%ProgramFiles32Dir%\vargusgenius"
; ----------------------------------------------------------------
 
 
ShowBitmap "%ScriptPath%\" + $ProductId$ + ".png" $ProductName$
Message "Installiert  " + $ProductId$ + " ..."
Files_Copy /SysNative
Files_Copy_Desktop
WinBatch_install
 
 
[WinBatch_install]
cacls "$InstallDir$" /T /E /G jeder:F
 
; copy a link to VargusGen.exe on the Common Desktop
[Files_Copy_Desktop]
copy "%ScriptPath%\verknuepfung\VargusGen.lnk" "%CommonDesktopDir%"
 
; copy the folder vargusgenius to the InstallDir
[Files_Copy]
copy -s "%ScriptPath%\vargusgenius\*.*" "$InstallDir$\."
 

uninstall.ins

[Actions]
 
DefVar $UninstallProgram$
DefVar $LogDir$
DefVar $ProductId$
DefVar $InstallDir$
DefVar $ProductName$
 
Set $LogDir$ = "%SystemDrive%\tmp"
 
; ----------------------------------------------------------------
; - Please edit the folling values                               -
; ----------------------------------------------------------------
Set $ProductId$       = "vargusgenius"
Set $ProductName$ 	  = "Vargus Genius 1.6.7.2"
Set $InstallDir$      = "%ProgramFiles32Dir%\vargusgenius"
; ----------------------------------------------------------------
 
 
comment "Display productlogo"
ShowBitmap "%ScriptPath%\" + $ProductId$ + ".png" $ProductName$
 
Message "Uninstalling " + $ProductId$ + " ..."
 
if FileExists("%ScriptPath%\delsub.ins")
	comment "Start uninstall sub section"
	Sub "%ScriptPath%\delsub.ins"
endif

delsub.ins

Set $UninstallProgram$ = $InstallDir$ + "\VargusGen.exe"
 
Message "Uninstalling " + $ProductName$ + " ..."
 
if FileExists($UninstallProgram$)
	comment "Found the program for uninstallation, will start uninstall"
	Files_uninstall /32Bit
endif
 
 
[Files_uninstall]
del -sf "$InstallDir$\"
delete -f "%CommonDesktopDir%\VargusGen.lnk"