We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

sethyukna
Posts: 2
Joined: Wed Aug 13, 2014 9:12 pm

Conditional Installation of Sharepoint Solutions

Hi, Is it possible to conditionally install SharePoint solutions using the built in package installer? For example, I have a radio button group allowing users to select what type of install they are doing (Full, Partial, etc). During a partial install, we do not want the SharePoint solutions installed. I do not see a way in the UI to perform said functionality.

I'm assuming this is possible by creating a custom action which will call a powershell script. Then putting a condition on that custom action. I'm hoping however, it's easier than that. :)

I'm using v10.3 of the software.

Thanks.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Conditional Installation of Sharepoint Solutions

Hello and welcome to Advanced Installer forums,

You can try to condition the SharePoint Solution deployment through the Condition field from the Organization page.

When a SharePoint solution is added to the project, automatically a new feature is created in the Organization page.
You can select the Install based on condition option for the Installation Behavior and add a corresponding statement in the Condition field (e.g. RADIO_BUTTON_PROP = "Full").

Please let us know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sethyukna
Posts: 2
Joined: Wed Aug 13, 2014 9:12 pm

Re: Conditional Installation of Sharepoint Solutions

Thank you Dan, that indeed does work. I tried that already, but assumed it didn't work when the installer still seemed to perform actions during the "Deploying Sharepoint Solutions" step, and cancelled the install prematurely.

A few side comments (I can open another forum question if that's more appropriate).

When running the install using powershell scripts to activate/install/deploy the sharepoint solutions it completes in about 1/15th the time of the advanced installer. Just curious if you could share the inner workings of what the advanced installer is doing during Sharepoint solution deployment.

Also, when running the install using powershell scripts as a custom action and checking the "Hide program's window" checkbox the install appears to fail. Simply unchecking that box allows the installer to complete successfully.
Example of "Launch File" custom action:

File to Launch: powershell.exe
Command Line: -version 2 .\installpackage.ps1
WorkingDirectory: [TempFolder]

Run as Admin
Use 64-bit

That being said, I noticed the latest vesion of AI has native powershell custom actions now. Does that allow the ability to hide the powershell script window when running commands?

Thanks for all your help.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Conditional Installation of Sharepoint Solutions

Hello,
When running the install using powershell scripts to activate/install/deploy the sharepoint solutions it completes in about 1/15th the time of the advanced installer. Just curious if you could share the inner workings of what the advanced installer is doing during Sharepoint solution deployment.
Indeed, this could be caused by a limitation of our predefined "SharePoint" support. Currently the deployment of the solutions added in our "SharePoint" page are managed using the "Stsadm" tool. We already have on our TODO list an improvement for our predefined "SharePoint" support to speed up the deployment time and hopefully it will be available in a future version of Advanced Installer.
That being said, I noticed the latest vesion of AI has native powershell custom actions now. Does that allow the ability to hide the powershell script window when running commands?
Yes, by using our predefined "Run Windows PowerShell Script" custom action the script window is hidden by default.

If you have any questions let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”