Hi Guys,
I think I'm good now. I did small changes. See below. The only thing is when .net extended is installed, the script will still install the full version which I think is ok as long as it installs the full version once the script detects that .Net Extended is not installed. Thanks so much for creating this tool. Make things so much easier.
Carlos
If ($dotNetExtendedInstalled -ne $true){
}
LOGS
[13-01-2014 10:09:36] [Pre-Installation] Registry key does not exist: [Registry::\HKEY_LOCAL_MACHINE\SOFTWARE\PSAppDeployToolkit\DeferHistory\BrainStorm_QuickHelpx86_3.02_EN_01]
[13-01-2014 10:09:36] [Pre-Installation] User now has [2] deferrals remaining.
[13-01-2014 10:09:36] [Pre-Installation] Checking for running applications [iexplore,excel,groove,onenote,infopath,onenote,outlook,mspub,powerpnt,winword,winproj,visio]...
[13-01-2014 10:09:36] [Pre-Installation] Applications are not running.
[13-01-2014 10:09:36] [Pre-Installation] Finished checking running applications.
[13-01-2014 10:09:36] [Pre-Installation] User has the option to defer.
[13-01-2014 10:09:37] [Pre-Installation] User selected to continue...
[13-01-2014 10:09:39] [Pre-Installation] Spinning up Progress Dialog in a separate thread with message: [BrainStorm Quick Help x86 3.02 Installation in Progress...]
[13-01-2014 10:09:40] [Pre-Installation] Getting information for installed Application Name [BrainStorm]...
[13-01-2014 10:09:40] [Pre-Installation] uninstall string [] does not match "msiexec", so removal will not proceed.
[13-01-2014 10:09:40] [Pre-Installation] Getting Registry key [Registry::\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall{8E34682C-8118-31F1-BC4C-98CD9675E1C2}] ...
[13-01-2014 10:09:41] [Pre-Installation] Registry key does not exist: [Registry::\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall{8E34682C-8118-31F1-BC4C-98CD9675E1C2}]
[13-01-2014 10:09:41] [Pre-Installation] Executing [dotNetFx40_Full_x86_x64.exe /q /norestart]...
[13-01-2014 10:11:08] [Pre-Installation] Execution completed successfully with return code 0.
[13-01-2014 10:11:08] [Installation] Executing [msiexec.exe /i "BrainStormQuickHelpX86.msi" TRANSFORMS="Brainstorm_Training_3.0.mst" DESKTOPICON=0 LOGINMETHOD=SSO COMPANYNAME=gm.com /QN /L*v "C:\Windows\Logs\Software\BrainStormQuickHelpX86_Install.log"]...
[13-01-2014 10:11:10] [Installation] Execution completed successfully with return code 0.
[13-01-2014 10:11:10] [Reboot Required] BrainStorm_QuickHelpx86_3.02_EN_01 Installation completed with exit code [0].
[13-01-2014 10:11:10] [Reboot Required] ----------------------------------------------------------------------------------
I think I'm good now. I did small changes. See below. The only thing is when .net extended is installed, the script will still install the full version which I think is ok as long as it installs the full version once the script detects that .Net Extended is not installed. Thanks so much for creating this tool. Make things so much easier.
Carlos
Get the installed .NET Framework Version
$dotNetExtendedInstalled = Get-RegistryKey "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall{8E34682C-8118-31F1-BC4C-98CD9675E1C2}"If ($dotNetExtendedInstalled -ne $true){
Install .NET Full
Execute-Process -FilePath "dotNetFx40_Full_x86_x64.exe" -Arguments "/q /norestart"}
LOGS
[13-01-2014 10:09:36] [Pre-Installation] Registry key does not exist: [Registry::\HKEY_LOCAL_MACHINE\SOFTWARE\PSAppDeployToolkit\DeferHistory\BrainStorm_QuickHelpx86_3.02_EN_01]
[13-01-2014 10:09:36] [Pre-Installation] User now has [2] deferrals remaining.
[13-01-2014 10:09:36] [Pre-Installation] Checking for running applications [iexplore,excel,groove,onenote,infopath,onenote,outlook,mspub,powerpnt,winword,winproj,visio]...
[13-01-2014 10:09:36] [Pre-Installation] Applications are not running.
[13-01-2014 10:09:36] [Pre-Installation] Finished checking running applications.
[13-01-2014 10:09:36] [Pre-Installation] User has the option to defer.
[13-01-2014 10:09:37] [Pre-Installation] User selected to continue...
[13-01-2014 10:09:39] [Pre-Installation] Spinning up Progress Dialog in a separate thread with message: [BrainStorm Quick Help x86 3.02 Installation in Progress...]
[13-01-2014 10:09:40] [Pre-Installation] Getting information for installed Application Name [BrainStorm]...
[13-01-2014 10:09:40] [Pre-Installation] uninstall string [] does not match "msiexec", so removal will not proceed.
[13-01-2014 10:09:40] [Pre-Installation] Getting Registry key [Registry::\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall{8E34682C-8118-31F1-BC4C-98CD9675E1C2}] ...
[13-01-2014 10:09:41] [Pre-Installation] Registry key does not exist: [Registry::\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall{8E34682C-8118-31F1-BC4C-98CD9675E1C2}]
[13-01-2014 10:09:41] [Pre-Installation] Executing [dotNetFx40_Full_x86_x64.exe /q /norestart]...
[13-01-2014 10:11:08] [Pre-Installation] Execution completed successfully with return code 0.
[13-01-2014 10:11:08] [Installation] Executing [msiexec.exe /i "BrainStormQuickHelpX86.msi" TRANSFORMS="Brainstorm_Training_3.0.mst" DESKTOPICON=0 LOGINMETHOD=SSO COMPANYNAME=gm.com /QN /L*v "C:\Windows\Logs\Software\BrainStormQuickHelpX86_Install.log"]...
[13-01-2014 10:11:10] [Installation] Execution completed successfully with return code 0.
[13-01-2014 10:11:10] [Reboot Required] BrainStorm_QuickHelpx86_3.02_EN_01 Installation completed with exit code [0].
[13-01-2014 10:11:10] [Reboot Required] ----------------------------------------------------------------------------------