hat jemand eine idee wie man mit winst eine datei in c:\program files kopieren kann?
wenn ich folgendes eingebe:
Code: Alles auswählen
copy "%scriptpath%\files\*.*" "c:\program files\test"

Code: Alles auswählen
copy "%scriptpath%\files\*.*" "c:\program files\test"
Code: Alles auswählen
[Initial]
Message "Outlook Signatur einrichten"
LogLevel=2
StayOnTop=true
[Aktionen]
DefVar $sigpath$
Set $sigpath$ = "%AppdataDir%\Microsoft\Signatures\"
ShowBitmap /3 "%SCRIPTPATH%\outlook.bmp" "Outlook Signatur"
Files_copy
WinBatch_registersig
[Files_copy]
copy %scriptpath%\defaultsig.* $sigpath$
[WinBatch_registersig]
regedit /s %scriptpath%\signatur_registry.reg
Code: Alles auswählen
[Aktionen]
DefVar $sigpath$
Set $sigpath$ = "Microsoft\Signatures\"
Files_copy /AllNtUserProfiles
[Files_copy]
copy "%scriptpath%\defaultsig.*" "%UserProfileDir%\Anwendungsdaten\$sigpath$"
Vielen Dank für die Nutzung von opsi. Im Forum ist unser Support begrenzt.
Für den professionellen Einsatz und individuelle Beratung empfehlen wir einen Support-Vertrag und eine Schulung.
Gerne informieren wir Sie zu unserem Angebot.
uib GmbH
Telefon: +49 6131 27561 0
E-Mail: sales@uib.de
Code: Alles auswählen
[Initial]
; Message at install time:
Message=Kopiere programmbeispiel Setup Files...
LogLevel=2
; Log Errors in Logfile but don't abort:
ExitOnError=false
; Show syntax errors in the script:
ScriptErrorMessages=on
; Dont trace step by step through the script:
TraceMode=off
; let started programs run in front of the winst window
StayOnTop=false
[Aktionen]
DefVar $TEMP$
Set $TEMP$ = EnvVar("TEMP")
;Variables for OS version
DefVar $OS$
set $OS$ = GetOS
; is this a win32 system ?
if ( $OS$ = "Windows_NT" OR $OS$ = "Windows_95" )
if not(HasMinimumSpace ("%SYSTEMDRIVE%", "10 MB"))
LogError "Nicht gengend Platz auf C: . 10 MB auf C: fuer programmbeispiel erforderlich."
isFatalError
; Bearbeitung beenden und Produktschalter auf failed setzen
else
; show product picture
ShowBitmap /3 "%scriptpath%\kmw_opsi.bmp" "programmbeispiel"
; start setup program
sub_install_programmbeispiel
endif
endif
[sub_install_common-cfg]
files_copy_winXP
Registry_runOnce
[files_copy_winXP]
copy "%scriptpath%\files\*.*" "c:\program files\programmbeispiel\setup\files"
[Registry_runOnce]
openkey [HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce]
set "opsi_autologon_setup"="c:\program files\programmbeispiel\setup\files\setup.bat"