简体   繁体   English

c#winforms应用程序以管理员用户帐户以外的其他方式重新安装

[英]c# winforms application reinstall in other than administrator user accounts

I have created a setup project and have validations in it from installerClass,i installed the application in one system using the administrator user account,after installed successfully ,i just log off the system and login as normal user account,and i clicked the shortcut icon from the desktop for my application (installed from admin account) it again stating the installation. 我创建了一个安装项目,并从installerClass中进行了验证,我使用管理员用户帐户在一个系统中安装了该应用程序,安装成功后,我退出了系统并以普通用户帐户登录,然后单击了快捷方式图标从我的应用程序的桌面(通过管理员帐户安装)再次说明安装。 I don't need to reinstall it,(it not possible to allow the reinstall in another account validation failed) how to restrict this. 我不需要重新安装它(无法在另一个帐户验证中重新安装失败)如何限制此设置。

I got it from another link says "non-advertised" shortcuts with DISABLEADVTSHORTCUTS=1. 我是从另一个链接获得的,该链接说DISABLEADVTSHORTCUTS = 1的“非广告”快捷方式。 I use the orca application to edit the properties of .msi file. 我使用orca应用程序来编辑.msi文件的属性。 if you are using win xp u can found the orca in your sytem path:C:\\Program Files\\Microsoft SDKs\\Windows\\v7.0\\Bin\\Orca.msi install it and edit Created msi using the Select Properies from left panel-> right click on right panel ->add row->Name as DISABLEADVTSHORTCUTS ,value as 1. save. 如果您使用的是Win XP,则可以在系统路径中找到orca:C:\\ Program Files \\ Microsoft SDKs \\ Windows \\ v7.0 \\ Bin \\ Orca.msi安装它并使用“从左面板选择属性”编辑“创建的msi”- >右键单击右面板->添加行->名称为DISABLEADVTSHORTCUTS,值作为1.保存。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM