Hello Bruce,
Was wondering if anyone could help me determine the best way to find out if Windows PowerShell is installed.
This would be for Prerequisites ... MSSQL 2008 R2 Express.
In order to achieve this you can add our "Windows PowerShell 1.0" predefined prerequisite before "SQL Server 2008 Express R2" prerequisite to your package.
I wish to determine this and then give warning to download and install .. so I only need to know if it is present or not and if not stop the install.
If you don't want to add "Windows PowerShell 1.0" prerequisite package to your project then you can use a
custom launch condition which will check if the related package is installed or not on target machine.
In order to achieve this you can proceed like this:
- Go to "Search" page and add a new
extended search (i.e. MY_SEARCH) like this:
- Criteria: Registry value exists
Registry Value: HKLM\SOFTWARE\Microsoft\PowerShell\1\Install
- Go to "Launch Condition" page -> "Custom" tab and add a new custom launch condition, using [New...] button, like this:
- Condition: MY_SEARCH
Description: Desired message
-Build and run your project.
All the best,
Daniel
FOLLOW US
Get the latest news in Application Packaging