Seite 1 von 1

Hardcopy

Verfasst: 08 Dez 2011, 07:53
von biZZa
Hallo,
hat schon jemand Hardcopy (Screenshotprogramm) erfolgreich installiert?

Über den Installationsprozess gibt es keinerlei Schalter für eine silent Installation. Aber es reicht auch die setup.exe zu entpacken, danach ist das Programm über Hardcopy.exe startbar. Ich erstelle einen Ordner C:\Programme\Hardcopy, kopiere den entpackten Inhalt aus der setup.exe hinein und kopiere eine vorher erstellte Verknüpfung ins Startmenü und unter Autostart. Bei "Autostart" sind wir dann bei meinem Problem angekommen. Während bei XP Clients alles funktioniert, erstellt es mir unter Win7 zwei Autostartverzeichnisse, das neu erstellte wird natürlich beim Start nicht automatisch ausgeführt. Hat jemand eine Idee was ich falsch mache?

grüße und schonmal vielen Dank für eure Hilfe.

Code: Alles auswählen

copy -s "%ScriptPath%\Hardcopy\" "$InstallDir$"
copy -s "%ScriptPath%\link\Hardcopy.LNK" "%CommonStartMenuPath%\Programme\Hardcopy - Bildschirmausdruck\"
copy -s "%ScriptPath%\link\Hardcopy.LNK" "%CommonStartMenuPath%\Programme\Autostart\"

Re: Hardcopy

Verfasst: 08 Dez 2011, 15:24
von d.oertel
Hi,

eine alternative wäre:
http://download.uib.de/opsi4.0/products ... 000-1.opsi

Zum Problem:
'programme' ist unter win7 in diesem Kontext kein gültiger Pfad in den man was kopieren kann.
Zum Erstellen von Startmenüeinträgen besser eine 'LinkFolder' Sektion verwenden.

gruss
d.oertel

Re: Hardcopy

Verfasst: 08 Dez 2011, 15:31
von Thomas_H
Moinsens...

und warum nicht über einen regkey? Zum Beispiel über run-Einträge?
Dann hast Du nicht das Problem mit dem Autostart.

Gruß

Thomas_H

Re: Hardcopy

Verfasst: 19 Feb 2016, 08:38
von SmEe
Programmverzeichnis kopieren, und Startmenüeintrag erstellen.
;)

Code: Alles auswählen

[Actions]
DefVar $InstallDir$
Set $InstallDir$      = "%Systemdrive%\Programme\Hardcopy"

ShowBitmap "%ScriptPath%\logo.png" "Hardcopy"

if FileExists("%ScriptPath%\delsub32.opsiscript")
				Sub "%ScriptPath%\delsub32.opsiscript"
				
endif

Message "Installiere Hardcopy"

Files_install /32bit
LinkFolder_install

[Files_install]
copy -s "%ScriptPath%\Hardcopy\*.*" "$InstallDir$"
;copy -s "%ScriptPath%\link\Hardcopy.LNK" "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp"

[LinkFolder_install]
set_basefolder common_startup
set_link
				name: "Hardcopy"
				target: $InstallDir$\hardcopy.exe
				parameters:
				working_dir: $InstallDir$
				icon_file: $InstallDir$\hardcopy.exe
				icon_index:
end_link