copy folder from %src% to local appdata and from %src% to appdata (roaming)
copy folder from %src% to local appdata and from %src% to appdata (roaming)
Hello, I am creating a package of HP smart stream, where 2 folders I have to copy subfolder of local folder from %src% to local appdata (%localappdata%) and another subfolder of roaming folder to appdata (%appdata%).
I have created below package but its not working properly, can you tell me whats wrong thing I am doing ?
[SetupInfo]
Author = ADM
CreationDate = 06/17/2024
InventoryID = {074AFDB1-6982-4FA5-91EC-EE6864538720}
Description = HP SmartStream 12.2.0.1291
Method = Unattend
Tested on =
Dependencies =
Command line options = /S0 /AW
Last Change = 06/17/2024
Build = 0
[VarDefInfo]
; <Variable>, <Type: 0=Computer 1=User>, <Allow NULL values: 0=No 1=Yes>
[Setup]
Version=14.2
ShowCaption=1
BlockInput=0
Platform=*
[Requirements]
[Application]
ProductName=SmartStream
DeveloperName=HP
Version=12.2.0.1291
Revision=0
SetupName=%ProductName% %Version% %SetupWizard%
Text1="%ProductName% %Version%", Arial, 30, , 2170F3, 4, , LEFT BOLD ITALIC
Text2="%DeveloperName%", Arial, 24, , 2170F3, 4, , LEFT BOLD ITALIC
Text8="%Company%", Arial, 18, , 2170F3, 4, 10, RIGHT BOLD ITALIC
Text9="%InstallationFor% %WindowsUser%", Arial, 16, , 2170F3, 4, -18, BOTTOM ITALIC LEFT
BackgroundColor=EFEFEF,000000
CopyDialogRect=0%, 0%, 100%, 100%, HCENTER VCENTER
; Register all installations in common registry key
UserKeyName=$Matrix42Packages$\%DeveloperName%\%ProductName%
MachineKeyName=$Matrix42Packages$\%DeveloperName%\%ProductName%\%Version%
UninstallKeyName=Matrix42 - %DeveloperName% %ProductName% %Version%
UninstallDisplayName=Matrix42 - %DeveloperName% %ProductName% %Version%
UninstallString=%ReinstallString% /U
ReinstallString="%CommonSetupDir%\Setup.exe" "%App%\%SetupInfDir%\Setup.inf"
;UninstallDisplayIcon="%ApplicationDir%\%SetupInfDir%\Setup.ico",0
UninstallOptions=NOREMOVE NOREPAIR NOMODIFY SYSTEMCOMPONENT
ReinstallMode=1
SrcDir=..
; Matrix42 Scripts are copied in a common scripts directory
ApplicationDir=%CommonAppData%\$Matrix42Scripts$\%DeveloperName%\%ProductName%\%Version%
SetupInfDir=Install
DataDir=%Personal%
AskUninstallOld=1
ShellLinks=1
CommonShellLinks=1
CreateUnresolvableShellLinks=1
UseStringSection=Strings:09
UseSysStringSection=SysStrings:09
DateWarning=1
SizeWarning=0
Reboot=0
PreventExternalReboot=1
StartServicesOnReboot=0
CallTimeOut=3600
AbortAfterCallTimeOut=1
DisableCancelButton=1
ShowEndMessage=1
EndMessage=%EndMessageDesc%
[Strings:07]
Disk1=Installationsmedium 1
EndMessageDesc=Die Installation wurde erfolgreich abgeschlossen!
ErrorLogMessage=Die Installation/Deinstallation wurde mit einer Fehlermeldung abgebrochen!
InstallationFor=Installation für:
InstallerDesc=Dienstprogramm zum Installieren einzelner Komponenten.
InstallerName=Installationsprogramm
SetupWizard=Installations-Assistent
Uninstallation=deinstallieren
ErrorText=Fehler
CallingText=beim Aufruf von
[Strings:09]
Disk1=Installation media 1
EndMessageDesc=Installation was completed successfully!
ErrorLogMessage=The installation/uninstallation aborted with an error message!
InstallationFor=Installation for:
InstallerDesc=Service program to install single components.
InstallerName=Setup program
SetupWizard=Installation Wizard
Uninstallation=Uninstallation
ErrorText=Error
CallingText=launching
[SysStrings:07]
Users=Benutzer
[SysStrings:09]
Users=Users
[Environment]
CommonSetupDir=%CommonFilesDir%\Setup%SetupBits%
V_MachineValuesPath=\\%EmpirumServer%\Values$\MachineValues\%DomainName%
V_UserValuesPath=%HKLM,"Software\matrix42\Software Depot","HomeServer"%\Values$\UserValues\%UserDomain%
Packagename=%DeveloperName% %ProductName% %Version%
DisplayVersion=12-2-0
Uninstallkey=HP
InstallLocation=%ProgramFilesDir%\HP\SmartStream
RegUninstallKey=HKLM,SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\%Uninstallkey%,UninstallString
RegUninstallString=%%HKLM,SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\%Uninstallkey%,UninstallString%%
DetectedDisplayVersion=%%HKLM,SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\%Uninstallkey%,DisplayVersion%%
;InstPara="%Src%\Files\HP_SmartStream_Silent_Installer64.exe" /AllUsers /S /v /qn
[Encryption]
[Disks]
1=%Disk1%
[Options]
Installer = %InstallerName%, COPYALWAYS, Installer, "%InstallerDesc%"
Product = %ProductName%, COPYALWAYS, Product, "%ProductDesc%"
[Installer]
1:..\..\..\..\User\Setup.exe, %CommonSetupDir%, OPTIONAL USEFILENAME DIRECTORY NOSIZEWARNING SETUP, 0
1:..\..\..\..\User\SetupDeu.chm, %CommonSetupDir%, OPTIONAL USEFILENAME DIRECTORY NOSIZEWARNING SETUP, 0
1:..\..\..\..\User\SetupEnu.chm, %CommonSetupDir%, OPTIONAL USEFILENAME DIRECTORY NOSIZEWARNING SETUP, 0
1:%Temp%\Setup64.exe, %CommonSetupDir%\Setup.exe, OPTIONAL ALWAYS NOSIZEWARNING SETUP WINDOWS64, 0
1:..\..\..\..\User\Setup64.exe, %CommonSetupDir%\Setup.exe, OPTIONAL ALWAYS NOSIZEWARNING SETUP WINDOWS64, 0
1:%SetupInfDir%\Setup.inf, , ALWAYS, 0
; 1:%SetupInfDir%\Setup.ico, , NORMAL, 0
; 1:%SetupInfDir%\Logo.bmp, , NORMAL, 0
1:, "%APP%\Files\Local\", CREATE DIRECTORY CASCADED, 0
1:, "%APP%\Files\Roaming\", CREATE DIRECTORY CASCADED, 0
[Product]
; ReplaceEnv <Variable>
#Set:Product
#Set:Config, DONTDELETE CLIENT
#Set:Installation, DONTDELETE
#Set:Deinstallation, DELETE
#Reg:OnUninstallProduct, DELETE
#Reg:Product
#Ini:Product
#Security:Product
[Set:Product]
If DoesRegKeyExist ("%RegUninstallKey%") == "1" Then "Set:Reinstall" Else "Set:Installation" EndIf
[Set:Installation]
AddMeter -1
Call "%Src%\Files\HP_SmartStream_Silent_Installer64.exe" /S /V /Qn
Del "%PUBLIC%\Desktop\HP Smart-Stream.lnk"
If "%ErrorLevel%" <> "0" Then "SET:InstallationError" EndIf
[Set:Reinstall]
AddMeter -1
-Call MsiExec.exe /x{79FD838F-340F-45C5-9D1F-688F460E4621} /qn /norestart
-DelTree "%Localappdata%\HP"
-DelTree "%appdata%\HP"
If "%ErrorLevel%" == "3010" | "%ErrorLevel%" == "1641" Then "RebootRequired" EndIf
If DoesRegKeyExist ("%RegUninstallKey%") == "1" Then "Set:DeinstallationError" EndIf
Call "%Src%\files\HP_SmartStream_Silent_Installer64.exe" /S /V /Qn
If "%ErrorLevel%" == "3010" | "%ErrorLevel%" == "1641" Then "RebootRequired" EndIf
[Set:Deinstallation]
-Call MsiExec.exe /x{79FD838F-340F-45C5-9D1F-688F460E4621} /qn /norestart
-DelTree "%Localappdata%\HP"
-DelTree "%appdata%\HP"
-AddMeter -1
[Set:Config]
;CallHidden XCOPY "%Src%\Files\Local\*.*" "%LocalAPPDATA%\" /S /H /A /V /E /Y
;CallHidden XCOPY "%Src%\Files\Roaming\*.*" "%APPDATA%\" /S /H /A /V /E /Y
;Callhidden %System%\cmd.exe /c xcopy "%SRC%\Files\Local\*.*" "%APP%\Files\Local\" /S /H /A /V /E /Y
;Callhidden %System%\cmd.exe /c xcopy "%SRC%\Files\Roaming\*.*" "%APP%\Files\Roaming\" /S /H /A /V /E /Y
;Callhidden %System%\cmd.exe /c xcopy "%APP%\Files\roaming\*.*" "%AppData%\" /S /H /A /V /E /Y
;Callhidden %System%\cmd.exe /c xcopy "%APP%\Files\Local\*.*" "%LocalAppData%\" /S /H /A /V /E /Y
[RebootRequired]
SetReboot 1
-SetReboot 1
[Reg:OnUninstallProduct]
[Reg:Product]
[Ini:Product]
[Security:Product]
[Shell:Product]
%CommonStartMenu%\HP SmartStream.lnk,C:\Program Files\HP\HP SmartStream\HP SmartStream.exe,,,"","",0,-1,0
[Set:InstallationError]
ErrorLogMsg %ErrorText% %ErrorLevel% %CallingText% HP_SmartStream_Silent_Installer64.exe
Abort
[Set:DeInstallationError]
-Abort
-ErrorLogMsg %ErrorText% %ErrorLevel% %CallingText% HP_SmartStream_Silent_Installer64.exe
I have created below package but its not working properly, can you tell me whats wrong thing I am doing ?
[SetupInfo]
Author = ADM
CreationDate = 06/17/2024
InventoryID = {074AFDB1-6982-4FA5-91EC-EE6864538720}
Description = HP SmartStream 12.2.0.1291
Method = Unattend
Tested on =
Dependencies =
Command line options = /S0 /AW
Last Change = 06/17/2024
Build = 0
[VarDefInfo]
; <Variable>, <Type: 0=Computer 1=User>, <Allow NULL values: 0=No 1=Yes>
[Setup]
Version=14.2
ShowCaption=1
BlockInput=0
Platform=*
[Requirements]
[Application]
ProductName=SmartStream
DeveloperName=HP
Version=12.2.0.1291
Revision=0
SetupName=%ProductName% %Version% %SetupWizard%
Text1="%ProductName% %Version%", Arial, 30, , 2170F3, 4, , LEFT BOLD ITALIC
Text2="%DeveloperName%", Arial, 24, , 2170F3, 4, , LEFT BOLD ITALIC
Text8="%Company%", Arial, 18, , 2170F3, 4, 10, RIGHT BOLD ITALIC
Text9="%InstallationFor% %WindowsUser%", Arial, 16, , 2170F3, 4, -18, BOTTOM ITALIC LEFT
BackgroundColor=EFEFEF,000000
CopyDialogRect=0%, 0%, 100%, 100%, HCENTER VCENTER
; Register all installations in common registry key
UserKeyName=$Matrix42Packages$\%DeveloperName%\%ProductName%
MachineKeyName=$Matrix42Packages$\%DeveloperName%\%ProductName%\%Version%
UninstallKeyName=Matrix42 - %DeveloperName% %ProductName% %Version%
UninstallDisplayName=Matrix42 - %DeveloperName% %ProductName% %Version%
UninstallString=%ReinstallString% /U
ReinstallString="%CommonSetupDir%\Setup.exe" "%App%\%SetupInfDir%\Setup.inf"
;UninstallDisplayIcon="%ApplicationDir%\%SetupInfDir%\Setup.ico",0
UninstallOptions=NOREMOVE NOREPAIR NOMODIFY SYSTEMCOMPONENT
ReinstallMode=1
SrcDir=..
; Matrix42 Scripts are copied in a common scripts directory
ApplicationDir=%CommonAppData%\$Matrix42Scripts$\%DeveloperName%\%ProductName%\%Version%
SetupInfDir=Install
DataDir=%Personal%
AskUninstallOld=1
ShellLinks=1
CommonShellLinks=1
CreateUnresolvableShellLinks=1
UseStringSection=Strings:09
UseSysStringSection=SysStrings:09
DateWarning=1
SizeWarning=0
Reboot=0
PreventExternalReboot=1
StartServicesOnReboot=0
CallTimeOut=3600
AbortAfterCallTimeOut=1
DisableCancelButton=1
ShowEndMessage=1
EndMessage=%EndMessageDesc%
[Strings:07]
Disk1=Installationsmedium 1
EndMessageDesc=Die Installation wurde erfolgreich abgeschlossen!
ErrorLogMessage=Die Installation/Deinstallation wurde mit einer Fehlermeldung abgebrochen!
InstallationFor=Installation für:
InstallerDesc=Dienstprogramm zum Installieren einzelner Komponenten.
InstallerName=Installationsprogramm
SetupWizard=Installations-Assistent
Uninstallation=deinstallieren
ErrorText=Fehler
CallingText=beim Aufruf von
[Strings:09]
Disk1=Installation media 1
EndMessageDesc=Installation was completed successfully!
ErrorLogMessage=The installation/uninstallation aborted with an error message!
InstallationFor=Installation for:
InstallerDesc=Service program to install single components.
InstallerName=Setup program
SetupWizard=Installation Wizard
Uninstallation=Uninstallation
ErrorText=Error
CallingText=launching
[SysStrings:07]
Users=Benutzer
[SysStrings:09]
Users=Users
[Environment]
CommonSetupDir=%CommonFilesDir%\Setup%SetupBits%
V_MachineValuesPath=\\%EmpirumServer%\Values$\MachineValues\%DomainName%
V_UserValuesPath=%HKLM,"Software\matrix42\Software Depot","HomeServer"%\Values$\UserValues\%UserDomain%
Packagename=%DeveloperName% %ProductName% %Version%
DisplayVersion=12-2-0
Uninstallkey=HP
InstallLocation=%ProgramFilesDir%\HP\SmartStream
RegUninstallKey=HKLM,SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\%Uninstallkey%,UninstallString
RegUninstallString=%%HKLM,SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\%Uninstallkey%,UninstallString%%
DetectedDisplayVersion=%%HKLM,SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\%Uninstallkey%,DisplayVersion%%
;InstPara="%Src%\Files\HP_SmartStream_Silent_Installer64.exe" /AllUsers /S /v /qn
[Encryption]
[Disks]
1=%Disk1%
[Options]
Installer = %InstallerName%, COPYALWAYS, Installer, "%InstallerDesc%"
Product = %ProductName%, COPYALWAYS, Product, "%ProductDesc%"
[Installer]
1:..\..\..\..\User\Setup.exe, %CommonSetupDir%, OPTIONAL USEFILENAME DIRECTORY NOSIZEWARNING SETUP, 0
1:..\..\..\..\User\SetupDeu.chm, %CommonSetupDir%, OPTIONAL USEFILENAME DIRECTORY NOSIZEWARNING SETUP, 0
1:..\..\..\..\User\SetupEnu.chm, %CommonSetupDir%, OPTIONAL USEFILENAME DIRECTORY NOSIZEWARNING SETUP, 0
1:%Temp%\Setup64.exe, %CommonSetupDir%\Setup.exe, OPTIONAL ALWAYS NOSIZEWARNING SETUP WINDOWS64, 0
1:..\..\..\..\User\Setup64.exe, %CommonSetupDir%\Setup.exe, OPTIONAL ALWAYS NOSIZEWARNING SETUP WINDOWS64, 0
1:%SetupInfDir%\Setup.inf, , ALWAYS, 0
; 1:%SetupInfDir%\Setup.ico, , NORMAL, 0
; 1:%SetupInfDir%\Logo.bmp, , NORMAL, 0
1:, "%APP%\Files\Local\", CREATE DIRECTORY CASCADED, 0
1:, "%APP%\Files\Roaming\", CREATE DIRECTORY CASCADED, 0
[Product]
; ReplaceEnv <Variable>
#Set:Product
#Set:Config, DONTDELETE CLIENT
#Set:Installation, DONTDELETE
#Set:Deinstallation, DELETE
#Reg:OnUninstallProduct, DELETE
#Reg:Product
#Ini:Product
#Security:Product
[Set:Product]
If DoesRegKeyExist ("%RegUninstallKey%") == "1" Then "Set:Reinstall" Else "Set:Installation" EndIf
[Set:Installation]
AddMeter -1
Call "%Src%\Files\HP_SmartStream_Silent_Installer64.exe" /S /V /Qn
Del "%PUBLIC%\Desktop\HP Smart-Stream.lnk"
If "%ErrorLevel%" <> "0" Then "SET:InstallationError" EndIf
[Set:Reinstall]
AddMeter -1
-Call MsiExec.exe /x{79FD838F-340F-45C5-9D1F-688F460E4621} /qn /norestart
-DelTree "%Localappdata%\HP"
-DelTree "%appdata%\HP"
If "%ErrorLevel%" == "3010" | "%ErrorLevel%" == "1641" Then "RebootRequired" EndIf
If DoesRegKeyExist ("%RegUninstallKey%") == "1" Then "Set:DeinstallationError" EndIf
Call "%Src%\files\HP_SmartStream_Silent_Installer64.exe" /S /V /Qn
If "%ErrorLevel%" == "3010" | "%ErrorLevel%" == "1641" Then "RebootRequired" EndIf
[Set:Deinstallation]
-Call MsiExec.exe /x{79FD838F-340F-45C5-9D1F-688F460E4621} /qn /norestart
-DelTree "%Localappdata%\HP"
-DelTree "%appdata%\HP"
-AddMeter -1
[Set:Config]
;CallHidden XCOPY "%Src%\Files\Local\*.*" "%LocalAPPDATA%\" /S /H /A /V /E /Y
;CallHidden XCOPY "%Src%\Files\Roaming\*.*" "%APPDATA%\" /S /H /A /V /E /Y
;Callhidden %System%\cmd.exe /c xcopy "%SRC%\Files\Local\*.*" "%APP%\Files\Local\" /S /H /A /V /E /Y
;Callhidden %System%\cmd.exe /c xcopy "%SRC%\Files\Roaming\*.*" "%APP%\Files\Roaming\" /S /H /A /V /E /Y
;Callhidden %System%\cmd.exe /c xcopy "%APP%\Files\roaming\*.*" "%AppData%\" /S /H /A /V /E /Y
;Callhidden %System%\cmd.exe /c xcopy "%APP%\Files\Local\*.*" "%LocalAppData%\" /S /H /A /V /E /Y
[RebootRequired]
SetReboot 1
-SetReboot 1
[Reg:OnUninstallProduct]
[Reg:Product]
[Ini:Product]
[Security:Product]
[Shell:Product]
%CommonStartMenu%\HP SmartStream.lnk,C:\Program Files\HP\HP SmartStream\HP SmartStream.exe,,,"","",0,-1,0
[Set:InstallationError]
ErrorLogMsg %ErrorText% %ErrorLevel% %CallingText% HP_SmartStream_Silent_Installer64.exe
Abort
[Set:DeInstallationError]
-Abort
-ErrorLogMsg %ErrorText% %ErrorLevel% %CallingText% HP_SmartStream_Silent_Installer64.exe
- Attachments
-
- hp.PNG
- (7.74 KiB) Downloaded 118 times
-
- Posts: 550
- Joined: 06. Apr 2006, 22:01
- Location: Bochum
- Contact:
Re: copy folder from %src% to local appdata and from %src% to appdata (roaming)
Hi!
Look to Step 1 and Step 2

Look to Step 1 and Step 2
Code: Select all
[SetupInfo]
Author = ADM
CreationDate = 06/17/2024
InventoryID = {074AFDB1-6982-4FA5-91EC-EE6864538720}
Description = HP SmartStream 12.2.0.1291
Method = Unattend
Tested on =
Dependencies =
Command line options = /S0 /AW
Last Change = 24.07.2024 11:51:38
Build = 0
[VarDefInfo]
; <Variable>, <Type: 0=Computer 1=User>, <Allow NULL values: 0=No 1=Yes>
[Setup]
Version=14.2
ShowCaption=1
BlockInput=0
Platform=*
[Requirements]
[Application]
ProductName=SmartStream
DeveloperName=HP
Version=12.2.0.1291
Revision=0
SetupName=%ProductName% %Version% %SetupWizard%
Text1="%ProductName% %Version%", Arial, 30, , 2170F3, 4, , LEFT BOLD ITALIC
Text2="%DeveloperName%", Arial, 24, , 2170F3, 4, , LEFT BOLD ITALIC
Text8="%Company%", Arial, 18, , 2170F3, 4, 10, RIGHT BOLD ITALIC
Text9="%InstallationFor% %WindowsUser%", Arial, 16, , 2170F3, 4, -18, BOTTOM ITALIC LEFT
BackgroundColor=EFEFEF,000000
CopyDialogRect=0%, 0%, 100%, 100%, HCENTER VCENTER
; Register all installations in common registry key
UserKeyName=$Matrix42Packages$\%DeveloperName%\%ProductName%
MachineKeyName=$Matrix42Packages$\%DeveloperName%\%ProductName%\%Version%
UninstallKeyName=Matrix42 - %DeveloperName% %ProductName% %Version%
UninstallDisplayName=Matrix42 - %DeveloperName% %ProductName% %Version%
UninstallString=%ReinstallString% /U
ReinstallString="%CommonSetupDir%\Setup.exe" "%App%\%SetupInfDir%\Setup.inf"
;UninstallDisplayIcon="%ApplicationDir%\%SetupInfDir%\Setup.ico",0
UninstallOptions=NOREMOVE NOREPAIR NOMODIFY SYSTEMCOMPONENT
ReinstallMode=1
SrcDir=..
; Matrix42 Scripts are copied in a common scripts directory
ApplicationDir=%CommonAppData%\$Matrix42Scripts$\%DeveloperName%\%ProductName%\%Version%
SetupInfDir=Install
DataDir=%Personal%
AskUninstallOld=1
ShellLinks=1
CommonShellLinks=1
CreateUnresolvableShellLinks=1
UseStringSection=Strings:09
UseSysStringSection=SysStrings:09
DateWarning=1
SizeWarning=0
Reboot=0
PreventExternalReboot=1
StartServicesOnReboot=0
CallTimeOut=3600
AbortAfterCallTimeOut=1
DisableCancelButton=1
ShowEndMessage=1
EndMessage=%EndMessageDesc%
[Strings:07]
Disk1=Installationsmedium 1
EndMessageDesc=Die Installation wurde erfolgreich abgeschlossen!
ErrorLogMessage=Die Installation/Deinstallation wurde mit einer Fehlermeldung abgebrochen!
InstallationFor=Installation für:
InstallerDesc=Dienstprogramm zum Installieren einzelner Komponenten.
InstallerName=Installationsprogramm
SetupWizard=Installations-Assistent
Uninstallation=deinstallieren
ErrorText=Fehler
CallingText=beim Aufruf von
[Strings:09]
Disk1=Installation media 1
EndMessageDesc=Installation was completed successfully!
ErrorLogMessage=The installation/uninstallation aborted with an error message!
InstallationFor=Installation for:
InstallerDesc=Service program to install single components.
InstallerName=Setup program
SetupWizard=Installation Wizard
Uninstallation=Uninstallation
ErrorText=Error
CallingText=launching
[SysStrings:07]
Users=Benutzer
[SysStrings:09]
Users=Users
[Environment]
CommonSetupDir=%CommonFilesDir%\Setup%SetupBits%
V_MachineValuesPath=\\%EmpirumServer%\Values$\MachineValues\%DomainName%
V_UserValuesPath=%HKLM,"Software\matrix42\Software Depot","HomeServer"%\Values$\UserValues\%UserDomain%
Packagename=%DeveloperName% %ProductName% %Version%
DisplayVersion=12-2-0
Uninstallkey=HP
InstallLocation=%ProgramFilesDir%\HP\SmartStream
RegUninstallKey=HKLM,SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\%Uninstallkey%,UninstallString
RegUninstallString=%%HKLM,SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\%Uninstallkey%,UninstallString%%
DetectedDisplayVersion=%%HKLM,SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\%Uninstallkey%,DisplayVersion%%
[Encryption]
[Disks]
1=%Disk1%
[Options]
Installer = %InstallerName%, COPYALWAYS, Installer, "%InstallerDesc%"
Product = %ProductName%, COPYALWAYS, Product, "%ProductDesc%"
[Installer]
1:..\..\..\..\User\Setup.exe, %CommonSetupDir%, OPTIONAL USEFILENAME DIRECTORY NOSIZEWARNING SETUP, 0
1:..\..\..\..\User\SetupDeu.chm, %CommonSetupDir%, OPTIONAL USEFILENAME DIRECTORY NOSIZEWARNING SETUP, 0
1:..\..\..\..\User\SetupEnu.chm, %CommonSetupDir%, OPTIONAL USEFILENAME DIRECTORY NOSIZEWARNING SETUP, 0
1:%Temp%\Setup64.exe, %CommonSetupDir%\Setup.exe, OPTIONAL ALWAYS NOSIZEWARNING SETUP WINDOWS64, 0
1:..\..\..\..\User\Setup64.exe, %CommonSetupDir%\Setup.exe, OPTIONAL ALWAYS NOSIZEWARNING SETUP WINDOWS64, 0
1:%SetupInfDir%\Setup.inf, , ALWAYS, 0
; 1:%SetupInfDir%\Setup.ico, , NORMAL, 0
; 1:%SetupInfDir%\Logo.bmp, , NORMAL, 0
[Product]
; ReplaceEnv <Variable>
#Set:Installation, MACHINE DONTDELETE
#Set:Deinstallation, MACHINE DELETE
#Set:UserConfig, CLIENT DONTDELETE
[Set:Installation]
If DoesRegKeyExist ("%RegUninstallKey%") == "1" Then "Reinstall" Else "Install" EndIf
;Step 1: Copy Userprofile Files to %APP% within Machine-Part:
MkDir "%App%\Files\AppData\HP"
Callhidden %System%\robocopy.exe "%Src%\Files\AppData\HP" "%App%\Files\AppData\HP" /MIR
MkDir "%App%\Files\LocalAppData\HP"
Callhidden %System%\robocopy.exe "%Src%\Files\LocalAppData\HP" "%App%\Files\LocalAppData\HP" /MIR
[Install]
AddMeter -1
Call "%Src%\Files\HP_SmartStream_Silent_Installer64.exe" /S /V /Qn
Del "%CommonDesktop%\HP Smart-Stream.lnk"
If "%ErrorLevel%" <> "0" Then "SET:InstallationError" EndIf
[Reinstall]
AddMeter -1
-Call MsiExec.exe /x{79FD838F-340F-45C5-9D1F-688F460E4621} /qn /norestart
-DelTree "%Localappdata%\HP"
-DelTree "%appdata%\HP"
If "%ErrorLevel%" == "3010" | "%ErrorLevel%" == "1641" Then "RebootRequired" EndIf
If DoesRegKeyExist ("%RegUninstallKey%") == "1" Then "Set:DeinstallationError" EndIf
Call "%Src%\files\HP_SmartStream_Silent_Installer64.exe" /S /V /Qn
If "%ErrorLevel%" == "3010" | "%ErrorLevel%" == "1641" Then "RebootRequired" EndIf
[Set:Deinstallation]
If DoesRegKeyExist ("%RegUninstallKey%") == "1" Then "Set:DeinstallationError" EndIf
If "%ErrorLevel%" == "3010" | "%ErrorLevel%" == "1641" Then "RebootRequired" EndIf
-Call MsiExec.exe /x{79FD838F-340F-45C5-9D1F-688F460E4621} /qn /norestart
-DelTree "%LocalApdata%\HP"
-DelTree "%Appdata%\HP"
-AddMeter -1
;Step 2: Copy %App%-userprofile-directories to userprofile directories within User-Part:
[Set:UserConfig]
MkDir "%AppData%\HP"
Callhidden %System%\robocopy.exe "%App%\Files\Appdata\HP" "%AppData%\HP" /MIR
MkDir "%LocalAppData%\HP"
Callhidden %System%\robocopy.exe "%App%\Files\LocalAppdata\HP" "%LocalAppData%\HP" /MIR
[RebootRequired]
SetReboot 1
-SetReboot 1
[Shell:Product]
%CommonStartMenu%\HP SmartStream.lnk, %ProgramFilesDir%\HP\HP SmartStream\HP SmartStream.exe,,,"","",0,-1,0
[Set:InstallationError]
ErrorLogMsg %ErrorText% %ErrorLevel% %CallingText% HP_SmartStream_Silent_Installer64.exe
Abort
[Set:DeInstallationError]
-Abort
-ErrorLogMsg %ErrorText% %ErrorLevel% %CallingText% HP_SmartStream_Silent_Installer64.exe

Frank Dethlefsen
Consultant und Coach
UPDATENOW GmbH
Frank.Dethlefsen@updatenow.de
https://empirum.blogspot.de/
Consultant und Coach
UPDATENOW GmbH
Frank.Dethlefsen@updatenow.de
https://empirum.blogspot.de/
Re: copy folder from %src% to local appdata and from %src% to appdata (roaming)
Thank you so much Frank, let me try this 

Re: copy folder from %src% to local appdata and from %src% to appdata (roaming)
Hello Frank, I have tried and found that while installing it is performing step 1 and after step 1 it is directly going to shell product step, it is not performing step 2
do you know what change is needed ?
because In step 2 its copying folder to appdata and local app data folder
do you know what change is needed ?
because In step 2 its copying folder to appdata and local app data folder
-
- Posts: 550
- Joined: 06. Apr 2006, 22:01
- Location: Bochum
- Contact:
Re: copy folder from %src% to local appdata and from %src% to appdata (roaming)
Hi!
How do you run the software package / Setup.inf-script?
Take the setup.inf. I correct some of my mistakes. It is important, that you use the command line option /AW in the package properties.
EMC > Configuration > Software Management > Depot > Registers > {Package-Register} > Right click on {Package} > Properties > Check > Command > Add the command line option /AW if not set. Save with OK und left corner blue disk.
Test the package on a clean computer (Package has been never run before)
If it still doesn't work, please send me a download link of the complete zipped package to Frank.Dethlefsen@updatenow.de

How do you run the software package / Setup.inf-script?
Take the setup.inf. I correct some of my mistakes. It is important, that you use the command line option /AW in the package properties.
EMC > Configuration > Software Management > Depot > Registers > {Package-Register} > Right click on {Package} > Properties > Check > Command > Add the command line option /AW if not set. Save with OK und left corner blue disk.
Test the package on a clean computer (Package has been never run before)
If it still doesn't work, please send me a download link of the complete zipped package to Frank.Dethlefsen@updatenow.de

Frank Dethlefsen
Consultant und Coach
UPDATENOW GmbH
Frank.Dethlefsen@updatenow.de
https://empirum.blogspot.de/
Consultant und Coach
UPDATENOW GmbH
Frank.Dethlefsen@updatenow.de
https://empirum.blogspot.de/
Re: copy folder from %src% to local appdata and from %src% to appdata (roaming)
Thanks, will check, and if it won't work then as you suggested will send a zip file !!
Re: copy folder from %src% to local appdata and from %src% to appdata (roaming)
Actually my package is working in package editor, those folders are copying in appdata but when I am importing package and after validation when I am deploying that package to another client computer that time it is not working
Re: copy folder from %src% to local appdata and from %src% to appdata (roaming)
I have made below changes to get it work in package editor
#Set:Installation, DONTDELETE
#Set:Deinstallation, DELETE
#Set:UserConfig, DONTDELETE
But yes package is not working when I deployed it through empirum to other client computer
#Set:Installation, DONTDELETE
#Set:Deinstallation, DELETE
#Set:UserConfig, DONTDELETE
But yes package is not working when I deployed it through empirum to other client computer
-
- Posts: 550
- Joined: 06. Apr 2006, 22:01
- Location: Bochum
- Contact:
Re: copy folder from %src% to local appdata and from %src% to appdata (roaming)
HI!
How to you deploy the package to the computer?
Do you install the package via Software Depot Kiosk?
If yes, only the package user part will be installed for the logged-on user. Do install the package user part to other users on the computer, you need an enforce assignment for the package.
What SWDepot-Log entries do you get for computer in tjhe Matrix42 Management Console?
There should be one for the package machine part "Install (Machine)" und for every logged-on user a package user part "Install (User)".

How to you deploy the package to the computer?
Do you install the package via Software Depot Kiosk?
If yes, only the package user part will be installed for the logged-on user. Do install the package user part to other users on the computer, you need an enforce assignment for the package.
What SWDepot-Log entries do you get for computer in tjhe Matrix42 Management Console?
There should be one for the package machine part "Install (Machine)" und for every logged-on user a package user part "Install (User)".

Frank Dethlefsen
Consultant und Coach
UPDATENOW GmbH
Frank.Dethlefsen@updatenow.de
https://empirum.blogspot.de/
Consultant und Coach
UPDATENOW GmbH
Frank.Dethlefsen@updatenow.de
https://empirum.blogspot.de/
Re: copy folder from %src% to local appdata and from %src% to appdata (roaming)
Hello Frank, thanks for your reply, Now my package is only downloading but not installing software
please find attached image
also what do you thing where to use don't delete machine and don't delete client? i am confused here
last time what you given that code that was not working in package editor debugging
please find attached image
also what do you thing where to use don't delete machine and don't delete client? i am confused here
last time what you given that code that was not working in package editor debugging
- Attachments
-
- hp1.png
- (18.47 KiB) Downloaded 107 times
-
- Posts: 550
- Joined: 06. Apr 2006, 22:01
- Location: Bochum
- Contact:
Re: copy folder from %src% to local appdata and from %src% to appdata (roaming)
Hi!
There can be various reasons why a package is only downloaded and not installed:
1. Depot-Register, that contains the package, has not approved OS.
2. The package properties has not approved OS.
3. The agent template uses a maintenance time window.
4. The package properties Install context is not always.
5. Depot-Register, that contains the package, use check rights option or custom security group, user or file settings.
6. The agent suppresses installation when presentation mode is active.

There can be various reasons why a package is only downloaded and not installed:
1. Depot-Register, that contains the package, has not approved OS.
2. The package properties has not approved OS.
3. The agent template uses a maintenance time window.
4. The package properties Install context is not always.
5. Depot-Register, that contains the package, use check rights option or custom security group, user or file settings.
6. The agent suppresses installation when presentation mode is active.

Frank Dethlefsen
Consultant und Coach
UPDATENOW GmbH
Frank.Dethlefsen@updatenow.de
https://empirum.blogspot.de/
Consultant und Coach
UPDATENOW GmbH
Frank.Dethlefsen@updatenow.de
https://empirum.blogspot.de/
Re: copy folder from %src% to local appdata and from %src% to appdata (roaming)
Thanks frank for this valuable information 

Re: copy folder from %src% to local appdata and from %src% to appdata (roaming)
Below is my current code and i am getting error when i am deploying package to another computer, for error please check screenshot.
[Product]
; ReplaceEnv <Variable>
#Set:Installation, MACHINE DONTDELETE
#Set:Deinstallation, MACHINE DELETE
#Set:UserConfig, CLIENT DONTDELETE
[Set:Installation]
If DoesRegKeyExist ("%RegUninstallKey%") == "1" Then "Reinstall" Else "Install" EndIf
;Step 1: Copy Userprofile Files to %APP% within Machine-Part:
MkDir "%App%\Files\AppData\HP"
Callhidden %System%\robocopy.exe "%Src%\Files\AppData\HP" "%App%\Files\AppData\HP" /MIR
MkDir "%App%\Files\LocalAppData\HP"
Callhidden %System%\robocopy.exe "%Src%\Files\LocalAppData\HP" "%App%\Files\LocalAppData\HP" /MIR
[Install]
AddMeter -1
Call "%Src%\Files\HP_SmartStream_Silent_Installer64.exe" /S /V /Qn
If "%ErrorLevel%" <> "0" Then "SET:InstallationError" EndIf
Del "%CommonDesktop%\HP SmartStream.lnk"
[Reinstall]
AddMeter -1
-Call MsiExec.exe /x{79FD838F-340F-45C5-9D1F-688F460E4621} /qn /norestart
DelTree "%Localappdata%\HP"
DelTree "%appdata%\HP"
If "%ErrorLevel%" == "3010" | "%ErrorLevel%" == "1641" Then "RebootRequired" EndIf
If DoesRegKeyExist ("%RegUninstallKey%") == "1" Then "Set:DeinstallationError" EndIf
Call "%Src%\files\HP_SmartStream_Silent_Installer64.exe" /S /V /Qn
If "%ErrorLevel%" == "3010" | "%ErrorLevel%" == "1641" Then "RebootRequired" EndIf
[Set:Deinstallation]
If DoesRegKeyExist ("%RegUninstallKey%") == "1" Then "Set:DeinstallationError" EndIf
If "%ErrorLevel%" == "3010" | "%ErrorLevel%" == "1641" Then "RebootRequired" EndIf
-Call MsiExec.exe /x{79FD838F-340F-45C5-9D1F-688F460E4621} /qn /norestart
-DelTree "%LocalApdata%\HP"
-DelTree "%Appdata%\HP"
-AddMeter -1
;Step 2: Copy %App%-userprofile-directories to userprofile directories within User-Part:
[Set:UserConfig]
MkDir "%AppData%\HP"
Callhidden %System%\robocopy.exe "%App%\Files\Appdata\HP" "%AppData%\HP" /MIR
MkDir "%LocalAppData%\HP"
Callhidden %System%\robocopy.exe "%App%\Files\LocalAppdata\HP" "%LocalAppData%\HP" /MIR
[RebootRequired]
SetReboot 1
-SetReboot 1
[Shell:Product]
%CommonStartMenu%\HP SmartStream,C:\Program Files\HP\HP SmartStream\HP SmartStream.exe,,C:\Program Files\HP\HP SmartStream,"HP SmartStream","",,-1,0
[Product]
; ReplaceEnv <Variable>
#Set:Installation, MACHINE DONTDELETE
#Set:Deinstallation, MACHINE DELETE
#Set:UserConfig, CLIENT DONTDELETE
[Set:Installation]
If DoesRegKeyExist ("%RegUninstallKey%") == "1" Then "Reinstall" Else "Install" EndIf
;Step 1: Copy Userprofile Files to %APP% within Machine-Part:
MkDir "%App%\Files\AppData\HP"
Callhidden %System%\robocopy.exe "%Src%\Files\AppData\HP" "%App%\Files\AppData\HP" /MIR
MkDir "%App%\Files\LocalAppData\HP"
Callhidden %System%\robocopy.exe "%Src%\Files\LocalAppData\HP" "%App%\Files\LocalAppData\HP" /MIR
[Install]
AddMeter -1
Call "%Src%\Files\HP_SmartStream_Silent_Installer64.exe" /S /V /Qn
If "%ErrorLevel%" <> "0" Then "SET:InstallationError" EndIf
Del "%CommonDesktop%\HP SmartStream.lnk"
[Reinstall]
AddMeter -1
-Call MsiExec.exe /x{79FD838F-340F-45C5-9D1F-688F460E4621} /qn /norestart
DelTree "%Localappdata%\HP"
DelTree "%appdata%\HP"
If "%ErrorLevel%" == "3010" | "%ErrorLevel%" == "1641" Then "RebootRequired" EndIf
If DoesRegKeyExist ("%RegUninstallKey%") == "1" Then "Set:DeinstallationError" EndIf
Call "%Src%\files\HP_SmartStream_Silent_Installer64.exe" /S /V /Qn
If "%ErrorLevel%" == "3010" | "%ErrorLevel%" == "1641" Then "RebootRequired" EndIf
[Set:Deinstallation]
If DoesRegKeyExist ("%RegUninstallKey%") == "1" Then "Set:DeinstallationError" EndIf
If "%ErrorLevel%" == "3010" | "%ErrorLevel%" == "1641" Then "RebootRequired" EndIf
-Call MsiExec.exe /x{79FD838F-340F-45C5-9D1F-688F460E4621} /qn /norestart
-DelTree "%LocalApdata%\HP"
-DelTree "%Appdata%\HP"
-AddMeter -1
;Step 2: Copy %App%-userprofile-directories to userprofile directories within User-Part:
[Set:UserConfig]
MkDir "%AppData%\HP"
Callhidden %System%\robocopy.exe "%App%\Files\Appdata\HP" "%AppData%\HP" /MIR
MkDir "%LocalAppData%\HP"
Callhidden %System%\robocopy.exe "%App%\Files\LocalAppdata\HP" "%LocalAppData%\HP" /MIR
[RebootRequired]
SetReboot 1
-SetReboot 1
[Shell:Product]
%CommonStartMenu%\HP SmartStream,C:\Program Files\HP\HP SmartStream\HP SmartStream.exe,,C:\Program Files\HP\HP SmartStream,"HP SmartStream","",,-1,0
- Attachments
-
- hp package error.PNG
- (11.02 KiB) Downloaded 107 times
-
- Moderator
- Posts: 8084
- Joined: 13. Dec 2004, 23:10
- Location: Adendorf/Lüneburg
Re: copy folder from %src% to local appdata and from %src% to appdata (roaming)
Please check the setup error log of that client for a detailed error message.
Hendrik Ambrosius / Senior Presales Consultant
Mobile: +49 172 408 4447 | hendrik.ambrosius@matrix42.com
Matrix42 GmbH | Elbinger Straße 7 | 60487 Frankfurt am Main | Germany | www.matrix42.com
Disclaimer: I participate in this forum on a voluntary basis. Views expressed are not necessarily those of Matrix42 or of the support team.
Mobile: +49 172 408 4447 | hendrik.ambrosius@matrix42.com
Matrix42 GmbH | Elbinger Straße 7 | 60487 Frankfurt am Main | Germany | www.matrix42.com
Disclaimer: I participate in this forum on a voluntary basis. Views expressed are not necessarily those of Matrix42 or of the support team.
Re: copy folder from %src% to local appdata and from %src% to appdata (roaming)
Setup error log is as below -
16.08.2024 19:59:30, Section [SET:InstallationError], Line 1:
ErrorLogMsg: Fehler 1619 beim Aufruf von HP_SmartStream_Silent_Installer64.exe
------------
What's wrong with set: installation? I am unable to understand
one thing I observed when I tried to install manually that time it extracted msi from ext and then it performed the installation, Could this be the reason? if yes then how to install it?
Shall I use msi for hp instead of exe?
16.08.2024 19:59:30, Section [SET:InstallationError], Line 1:
ErrorLogMsg: Fehler 1619 beim Aufruf von HP_SmartStream_Silent_Installer64.exe
------------
What's wrong with set: installation? I am unable to understand
one thing I observed when I tried to install manually that time it extracted msi from ext and then it performed the installation, Could this be the reason? if yes then how to install it?
Shall I use msi for hp instead of exe?
Who is online
Users browsing this forum: No registered users and 1 guest