murpheeee Posted May 4, 2020 Posted May 4, 2020 Hi, new user here...I'd appreciate some suggestions on what I'm doing wrong I have a script to install a bunch of Microsoft pre-reqs, then install a software application. All works, but after it completes, its starts over and runs through all the pre-res and app installs again, and again..... #RequireAdmin RunWait("\\server\installers\NVivo_12\Nvivo12_prereqs\ndp48-x86-x64-allos-enu.exe /showrmui /passive /norestart") RunWait("\\server\installers\NVivo_12\Nvivo12_prereqs\vcredist_2010_x64.exe /passive") RunWait("\\server\installers\NVivo_12\Nvivo12_prereqs\vcredist_2012_u4_x64.exe /passive") RunWait("\\server\installers\NVivo_12\Nvivo12_prereqs\vcredist_2015_u3_x64.exe /passive") RunWait("msiexec /i \\server\installers\NVivo_12\Nvivo12_prereqs\SqlLocalDB_x64.msi IACCEPTSQLLOCALDBLICENSETERMS=YES /qb /norestart") RunWait("msiexec /i \\server\installers\NVivo_12\Files\NVivo_12.msi /qb") $FilePath = "C:\Program Files\QSR\Nvivo 12\" FileCopy("\\server\installers\NVivo_12\Files\Activation.xml", $FilePath, 1) Sleep(5000) Run("""C:\Program Files\QSR\Nvivo 12\Nvivo.exe"" -i ""C:\Program Files\QSR\Nvivo 12\Activation.xml""") Sleep(5000) Exit Thanks!
Developers Jos Posted May 4, 2020 Developers Posted May 4, 2020 Did you call the compiled scrip "nvivo.exe"? Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
murpheeee Posted May 4, 2020 Author Posted May 4, 2020 Just now, Jos said: Did you call the compiled scrip "nvivo.exe"? Jos No, that is the app launcher exe My compiled script is named Install_Nvivo12-SelfService.exe
TheXman Posted May 4, 2020 Posted May 4, 2020 12 minutes ago, murpheeee said: My compiled script is named Install_Nvivo12-SelfService.exe How does your script get launched initially? CryptoNG UDF: Cryptography API: Next Gen jq UDF: Powerful and Flexible JSON Processor | jqPlayground: An Interactive JSON Processor Xml2Json UDF: Transform XML to JSON | HttpApi UDF: HTTP Server API | Roku Remote: Example Script About Me How To Ask Good Questions On Technical And Scientific Forums (Detailed) | How to Ask Good Technical Questions (Brief) "Any fool can know. The point is to understand." -Albert Einstein "If you think you're a big fish, it's probably because you only swim in small ponds." ~TheXman
Developers Jos Posted May 4, 2020 Developers Posted May 4, 2020 I do not see any reason in the posted source that would cause a loop. How do you shell the script exe? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
murpheeee Posted May 4, 2020 Author Posted May 4, 2020 3 minutes ago, TheXman said: How does your script get launched initially? At this point a user will navigate to the directory and just double click it
murpheeee Posted May 4, 2020 Author Posted May 4, 2020 5 minutes ago, Jos said: I do not see any reason in the posted source that would cause a loop. How do you shell the script exe? I just right click the .au3 file and Compile Script to create the exe
Developers Jos Posted May 4, 2020 Developers Posted May 4, 2020 That is the compilation, not shelling the compiled script, but your previous post answers that. As said, the script itself doesn't seem to contain a reason for looping. Did you check whether the script exe actually still runs when the process starts again....and if so does it have the same pid? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Subz Posted May 4, 2020 Posted May 4, 2020 My son (working along side me), just packaged NVivo 12 here are the basic steps he used, while it will take a little longer to use the InstallShield wrapped exe, it installs any of the pre-requisites required (most are already installed, although I see you're installing DotNetFx 4.8 (NVivo only requires 4.6.2). Anyway hope that helps. If RegRead('HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{BAF67399-85CD-4555-9B49-1F80EB921C35}', 'DisplayVersion') = '' Then RunWait('msiexec.exe /i"' & @ScriptDir & '\SqlLocalDB.msi" /QN /NORESTART') EndIf If RegRead('HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{28ADDB93-754C-4AB8-AAE5-851DBCBA2C1E}', 'DisplayVersion') = '' Then RunWait(@ScriptDir & '\NVivo12.x64.exe /s /v" /qn /norestart"') EndIf RunWait(@ComSpec & " /c " & '"C:\Program Files\QSR\NVivo 12\NVivo.exe" -i xxxxx-xxxxx-xxxxx-xxxxx-xxxxx', "", @SW_HIDE) RunWait(@ComSpec & " /c " & '"C:\Program Files\QSR\NVivo 12\NVivo.exe" -a ' & @ScriptDir & '\Activation.xml', "", @SW_HIDE)
murpheeee Posted May 5, 2020 Author Posted May 5, 2020 14 hours ago, Subz said: My son (working along side me), just packaged NVivo 12 here are the basic steps he used, while it will take a little longer to use the InstallShield wrapped exe, it installs any of the pre-requisites required (most are already installed, although I see you're installing DotNetFx 4.8 (NVivo only requires 4.6.2). Anyway hope that helps. If RegRead('HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{BAF67399-85CD-4555-9B49-1F80EB921C35}', 'DisplayVersion') = '' Then RunWait('msiexec.exe /i"' & @ScriptDir & '\SqlLocalDB.msi" /QN /NORESTART') EndIf If RegRead('HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{28ADDB93-754C-4AB8-AAE5-851DBCBA2C1E}', 'DisplayVersion') = '' Then RunWait(@ScriptDir & '\NVivo12.x64.exe /s /v" /qn /norestart"') EndIf RunWait(@ComSpec & " /c " & '"C:\Program Files\QSR\NVivo 12\NVivo.exe" -i xxxxx-xxxxx-xxxxx-xxxxx-xxxxx', "", @SW_HIDE) RunWait(@ComSpec & " /c " & '"C:\Program Files\QSR\NVivo 12\NVivo.exe" -a ' & @ScriptDir & '\Activation.xml', "", @SW_HIDE) Thank you, I will give it a go I just downloaded the latest NVivo 12.6 and its claims that .NETFramework 4.8 is now a pre-req
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now