Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > Install displays message regarding being unsafe and closes.
 

Install displays message regarding being unsafe and closes.

I am and admin use on the machine and I have one msi built for a project (built on my machine for a project) and it gives the following message.

This advertised application will not be installed because it might be
unsafe. Contact your administrator to change the installation user
interface option of the package to basic.

Is there any property i need to change in the setup project to enable it to run without giving such a message.

Thanks in advance
C10  Thursday, September 24, 2009 8:37 PM

Hi C10,

We can call the msiexec command to install the package and set the user interface option to basic. For example:
msiexec /i c:\package.msi /qn
/qn : set the user interface option to basic.
You can get more option about msiexec command from:
http://technet.microsoft.com/en-us/library/bb490936.aspx
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/sag_wininstall_command_line_syntax.mspx?mfr=true

You can also run the msi package as administrator like the thread below:
http://social.technet.microsoft.com/Forums/en-US/configmgrswdist/thread/ad4f17e4-d930-4391-8d6e-aed01544a0ae

Let me know if this does not help.
Aland Li


Please mark the replies as answers if they help and unmark if they don't. This can be beneficial to other community members reading the thread.
Aland Li  Monday, September 28, 2009 6:04 AM
Are youdoing a group policy install? This is the type of message you get when you do an advertised install/publish to the machine and dn't turn off the UI. The message is saying you can't have a GPO type of install that has policy being applied AND show UI. That's why it's saying that the UI can't be shown during a GPO/advertised type of install.
Phil Wilson
PhilWilson  Monday, September 28, 2009 6:40 PM

Hi C10,

We can call the msiexec command to install the package and set the user interface option to basic. For example:
msiexec /i c:\package.msi /qn
/qn : set the user interface option to basic.
You can get more option about msiexec command from:
http://technet.microsoft.com/en-us/library/bb490936.aspx
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/sag_wininstall_command_line_syntax.mspx?mfr=true

You can also run the msi package as administrator like the thread below:
http://social.technet.microsoft.com/Forums/en-US/configmgrswdist/thread/ad4f17e4-d930-4391-8d6e-aed01544a0ae

Let me know if this does not help.
Aland Li


Please mark the replies as answers if they help and unmark if they don't. This can be beneficial to other community members reading the thread.
Aland Li  Monday, September 28, 2009 6:04 AM
Are youdoing a group policy install? This is the type of message you get when you do an advertised install/publish to the machine and dn't turn off the UI. The message is saying you can't have a GPO type of install that has policy being applied AND show UI. That's why it's saying that the UI can't be shown during a GPO/advertised type of install.
Phil Wilson
PhilWilson  Monday, September 28, 2009 6:40 PM

You can use google to search for other answers

Custom Search

More Threads

• Configuring SQL Server when included as a requirement
• Error Deploying With ClickOnce 2
• Remoting from Embedded Control
• "The referenced assembly is not installed on your system" hell...
• MSI and Installshield
• Dreaded Security Exception Error
• HTTP Redirect error during clickonce
• ComboBox control in dialog (WiX)
• Difference between Windows 2000 Server and Windows 2005 Server
• How do I deploy an application?