Page 1 of 1

PowerShell Scripts

Posted: Tue Dec 01, 2015 1:29 am
by ggrewe
Are we able to run PowerShell scripts during the installation? I have various configurations with no luck.

Code: Select all

File:     <SystemDir>\PowerShell.exe
Parameters:     -Command "& {(get-content '<InstallDir>\<AppName>.exe.config').replace('$CountyName$', '<CustomUserInfo>') | set-content '<InstallDir>\<AppName>.exe.config'}"


File:     <SystemDir>\cmd.exe
Parameters:    /C PowerShell.exe -Command "& {(get-content '<InstallDir>\<AppName>.exe.config').replace('$CountyName$', '<CustomUserInfo>') | set-content '<InstallDir>\<AppName>.exe.config'}"