View Single Post
  #4  
Old 28-07-2015, 18:28
toto621 toto621 is offline
Registered User
 
Join Date: Jul 2015
Location: The World
Posts: 71
Thanks: 42
Thanked 47 Times in 23 Posts
toto621 is on a distinguished road
Hi,

I have a problem with the script, for redist I need to set an argument that point to "Documents" folder of windows so, following the rule described in the script :
;Redist Caption|Exec Directory + File|Arguments

I tried this :
Redist1=test redist 1 (7-Zip SFX)|Optionnal\test.exe|-o"{userdocs}\Documents\test1" -y
Redist2=test redist 2 (7-Zip SFX)|Optionnal\test.exe|-o{userdocs}"\Documents\test" -y
Redist3=test redist 3 (7-Zip SFX)|Optionnal\test.exe|-o"%userprofile%\Documents\test" -y
Redist4=test redist 4 (7-Zip SFX)|Optionnal\test.exe|-o%userprofile%"\Documents\test" -y

But all failled because "{userdocs}" or "%userprofile%" are treated as a folder name, not variable, is there a way to fix this ?

-- EDIT --
Another problem : No matter which soft I try (compressor or ultraarc, tested all available versions), it I tick precomp option WPI setup file ALWAYS fail with : Incorrect version of precomp.exe. Without precomp the decompression work as expected. I use WPI 3.1 untouched script from this thread.

Last edited by toto621; 29-07-2015 at 03:11. Reason: adding informations
Reply With Quote