Hallo zusammen ich versuche seit einiger Zeit ein Softwarepaket zu erstellen in dem ich mit dem PackageBuilder ein Paket erstellt haben. unter ClientData habe ich jetzt eine Setup.opsiscript erstellt mit folgendem Inhalt:
[Actions]
[Files_Local_Setup]
copy -s %SCRIPTPATH%\putty.exe C:\opsi.org\tmp
ChangeDirectory "C:\opsi.org\tmp"
[DosInAnIcon_ausfuehrn] winst /64Bit
putty.exe
auf den Client wird die action gestartet aber weder das Programm kopiert noch gestartet.
Ein Tipp wäre super.
Fehlen hier noch Teile ? soweit ich das sehen konnte reicht das setup script.
Einfaches Softwarepaket mit copy und exe erstellen?
-
- Beiträge: 439
- Registriert: 08 Jul 2017, 12:02
Re: Einfaches Softwarepaket mit copy und exe erstellen?
moin,
das reicht natürlich nicht....
[Abschnitt]
mach was
der abschnitt ist dann zuende, wenn [ gefunden wird
sodele - und was hast du?
nur eckige klammern und niemanden, der das, was in den eckigen klammern gemacht wird - auch benutzt.
das reicht natürlich nicht....
[Abschnitt]
mach was
der abschnitt ist dann zuende, wenn [ gefunden wird
sodele - und was hast du?
nur eckige klammern und niemanden, der das, was in den eckigen klammern gemacht wird - auch benutzt.
Re: Einfaches Softwarepaket mit copy und exe erstellen?
Moin
versuche es mal mit opsi-setup-detector. Ist im getting-started Handbuch beschrieben.
Viel Erfolg
Grüße
Karsten
versuche es mal mit opsi-setup-detector. Ist im getting-started Handbuch beschrieben.
Viel Erfolg
Grüße
Karsten
opsi support - uib gmbh
For productive opsi installations we recommend support contracts.
http://uib.de
http://opsi.org
For productive opsi installations we recommend support contracts.
http://uib.de
http://opsi.org
- SisterOfMercy
- Beiträge: 1524
- Registriert: 22 Jun 2012, 19:18
Re: Einfaches Softwarepaket mit copy und exe erstellen?
Try this. And as homework: create the uninstall script and the delsub3264.opsiscript
Code: Alles auswählen
encoding=utf8
[Actions]
requiredWinstVersion >= "4.11.5.14"
DefVar $LogDir$
DefVar $ProductId$
DefVar $MinimumSpace$
DefVar $InstallDir64$
DefVar $ExitCode$
DefVar $INST_SystemType$
DefVar $INST_MsVersion$
DefVar $desktopicon$
set $desktopicon$ = GetProductProperty("desktopicon","False")
DefStringList $ProductInfo$
DefVar $DisplayVersion$
DefVar $DisplayName$
set $ProductInfo$ = getProductMap
set $DisplayVersion$ = getValue("productversion", $ProductInfo$)
set $DisplayName$ = getValue("name", $ProductInfo$)
set $INST_MsVersion$ = GetMsVersionInfo
Set $INST_SystemType$ = GetSystemType
Set $LogDir$ = "%opsiLogDir%"
Set $ProductId$ = "putty"
Set $MinimumSpace$ = "500 MB"
; the path were we find the product after the installation
Set $InstallDir64$ = "%ProgramFiles64Dir%\PuTTY"
if not(HasMinimumSpace ("%SystemDrive%", $MinimumSpace$))
LogError "Not enough space on %SystemDrive%, " + $MinimumSpace$ + " on drive %SystemDrive% needed for " + $ProductId$
isFatalError
; Stop process and set installation status to failed
endif
if (CompareDotSeparatedNumbers($INST_MsVersion$, "<", "6.1")) or ($INST_SystemType$ = "x86 System")
LogError "A 64-bit system running Windows 7 or newer is required for " + $ProductId$
isFatalError
endif
comment "Show product picture"
ShowBitmap "%ScriptPath%\" + $ProductId$ + ".png" $ProductId$
if FileExists("%ScriptPath%\delsub3264.opsiscript")
comment "Start uninstall sub section"
Sub "%ScriptPath%\delsub3264.opsiscript"
endif
comment "installing"
if ($INST_SystemType$ = "64 Bit System")
Message "Installing " + $ProductId$ + "..."
comment "Copy files"
Files_install_64 /64Bit
comment "Patch Registry"
Registry_install /64Bit
Registry_install_AllProfiles /AllNTUserDats
comment "Create shortcuts"
LinkFolder_install
if ($desktopicon$ = "true")
LinkFolder_install_desktop
endif
endif
[Files_install_64]
copy -s "%ScriptPath%\files\*" "$InstallDir64$"
[Registry_install]
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$ProductId$]
set "Comments" = "Installed with OPSI"
set "DisplayIcon" = "$InstallDir64$\putty.exe"
set "DisplayVersion" = "$DisplayVersion$"
set "NoModify" = REG_DWORD:00000001
set "NoRepair" = REG_DWORD:00000001
set "NoRemove" = REG_DWORD:00000001
set "Publisher" = "Simon Tatham"
set "DisplayName" = "$DisplayName$ $DisplayVersion$"
set "UninstallString" = "$InstallDir64$\putty.exe"
set "InstallLocation" = "$InstallDir64$"
[Registry_install_AllProfiles]
openkey [HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions\Default%20Settings]
set "HostName" = ""
set "TerminalType" = "putty"
set "Beep" = REG_DWORD:00000000
set "ScrollbackLines" = REG_DWORD:0x0003d090
set "TermWidth" = REG_DWORD:0x0000007d
set "TermHeight" = REG_DWORD:0x00000028
set "MouseIsXterm" = REG_DWORD:00000002
;set "ScrollOnDisp" = REG_DWORD:00000000
; Remove stored start menu order
deletekey [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder\Start Menu]
[LinkFolder_install]
set_basefolder common_programs
set_subfolder ""
set_link
name: "PuTTY"
target: "$InstallDir64$\putty.exe"
parameters:
working_dir: "$InstallDir64$"
icon_file: "$InstallDir64$\putty.exe"
icon_index: 0
end_link
[LinkFolder_install_desktop]
set_basefolder common_desktopdirectory
set_subfolder ""
set_link
name: "PuTTY"
target: "$InstallDir64$\putty.exe"
parameters:
working_dir: "$InstallDir64$"
icon_file: "$InstallDir64$\putty.exe"
icon_index: 0
end_link
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!