I been looking around and around but nothing could really give me a direct answer.
I looking for something to create the scripts, I downloaded Instructor.
Word Functions Header v3.1
Text Functions Header v2.1
File Functions Header v2.9
and read about it but it still unable to give me that kind of power you professionals have to form out the functions.
Method 1
========
Under my code source, I need something like a good search functions which is able to do theseMethod 2
- able search for Alldrives for diretory/foldersname/apps ( the user might have partitions and store the apps in one of it )
- able to read from WriteRegStr ( registry )
- able to change the SetOutPath to the corrected drive which have the files.
I not too sure is this really possible coz it seems difficult to get most of it done.
============
This is another search function I was thinking is there a way to search for the folder existence and changed the $Installdir on SetOutPath and then if it does not exist, it will shutdown
# Installer sectionsthanks to all who had been helping me this far.
Section Main SEC0000
SetOutPath $InstalldIR
SetOverwrite on
Banner::show /NOUNLOAD /set 76 "Please Read While Loading" "Please do not reboot after this installation"
Sleep 1000
Banner::destroy
File "G:\xxx.exe"
File "upgrade.exe"
ExecWait "$TEMP\xxx.exe"
ExecWait "$TEMP\upgrade.exe"
Delete "$TEMP\xxx.exe"
Delete "$TEMP\upgrade.exe"
SectionEnd
# Installer functions
Function .onInit
InitPluginsDir
FunctionEnd