Mui file dont have to be in source, it depends on the source.
Try this
[Expand_file]
//In Script.project==> Require_File=run,%API%,Expand_file
//Syntax==> Require_File , [Folder\] filename , [Source (if source is different of %Source_Sys%)] , [Target ( If target is different of %Target_Sys%)]
// Ex: Require_File , mfc42u.dll - Require_File , mfc42u.dll , %WindowsDir%\System32 , %Target_Win%\System32
StrFormat,filename,#1,#5
StrFormat,path,#1,#6
If,#2,Equal,,Set,#2,%Source_Sys%
If,#3,Equal,,Set,#3,%Target_Sys%
If,Not,ExistFile,"#3\#6#5",Begin
StrFormat,EXT,#2,%ext%
If,%ext%,Equal,.cab,Begin
If,#6,Equal,,Begin
StrFormat,CTRIM,#3,\,#3
ShellExecute,Hide,expand.exe,"#$q#2#$q -F:#5 #$q#3#$q"
End
Else,Begin
StrFormat,CTRIM,#6,\,#6
ShellExecute,Hide,expand.exe,"#$q#2#$q -F:#5 #$q#3\#6#$q"
End
End
Else,Begin
CopyOrExpand,"#2\#5","#3\#6"
If,#4,Equal,,Set,#4,#2
Else,StrFormat,CTRIM,#4,\,#4
If,ExistFile,"#4\#5.mui",CopyOrExpand,"#4\#5.mui","#3\#6"
Else,If,ExistFile,"#4\#5.mu_",CopyOrExpand,"#4\#5.mui","#3\#6"
End
End
Unzip this file in your App folder and try the test.script
Add in interface a FolderBox and set it to parameter #4 only if you want to let the user select a different folder as %Source_Sys%
require_file,MSTSC.EXE,,,%pFileBox1%
require_file,MSTSC.EXE,,,D:\MUI
Test.7z 205.44KB
442 downloads