setup-project

Run process under current user

妖精的绣舞 提交于 2019-12-01 03:54:36
There is "Setup project" in VS. During installation I launch another process: System.Diagnostics.Process process = new System.Diagnostics.Process(); //fill StartInfo and run call Start() process.Start(); If I run installer under Windows 7 and install for "Everyone", process start under the SYSTEM. If I install "Just for me", process start under Current user. How do I always start process under Current user? I have found very simple solution . All that you need it just create a new class and copy text from this link. To launch the process call ProcessAsUser.Launch("program name"); I had a

How to include dependencies in Setup and Deployment Project?

半城伤御伤魂 提交于 2019-12-01 03:41:55
问题 I have a solution that consists of 3 projects. I've created a deployment project it is only including the dependencies from one of the projects in my solution. What I've done so far is in my Setup and Deployment project, I right-clicked "Application Folder" to Add --> Project Output. Next I selected my main project from a dropdown and selected "Primary Output". I clicked OK and that project's dependencies were successfully included in the deployment. I tried to repeat the same process for the

WizardImageFile does not work in Inno Setup 5.5.8

别来无恙 提交于 2019-12-01 03:17:37
问题 I installed the latest version of Inno Setup v5.5.8 (a) and now I can not view the WizardImageFile bitmap file in my installation wizard. It worked just fine in a the previous version. Am I doing something wrong or its a bug? Here a script example I created with the help of the Inno Setup wizard it self. Of course the setup_inno.bmp and setup_inno_small.bmp are in the same folder as the iss script file. The small image works just fine and the setup_inno.bmp is 24bit color depth (Windows

Run process under current user

孤者浪人 提交于 2019-12-01 01:03:22
问题 There is "Setup project" in VS. During installation I launch another process: System.Diagnostics.Process process = new System.Diagnostics.Process(); //fill StartInfo and run call Start() process.Start(); If I run installer under Windows 7 and install for "Everyone", process start under the SYSTEM. If I install "Just for me", process start under Current user. How do I always start process under Current user? 回答1: I have found very simple solution. All that you need it just create a new class

How to make a System.Configuration.Install.Installer to get a variable from the Setup project?

孤街浪徒 提交于 2019-11-30 20:20:44
I have 2 projects in my solution A Windows service Its Setup project I need that my ProjectInstaller : System.Configuration.Install.Installer 's method called OnAfterInstall to get the ProductName from the Setup Project. How do I do that? Somedeveloper Within your setup project right click project and select View > Custom Actions. Add a custom action. Now select Add Output, select your web service project, and click OK. Now select your custom action and set the CustomActionData property to contain something like /ProductName=[PRODUCTNAME] /whateveryouwant=[Whateveryouwant] (note that these are

How Add a COM-Exposed .NET Project to the VB6 (or VBA) References Dialog?

一笑奈何 提交于 2019-11-30 15:02:15
问题 I have created a .NET assembly that is exposed to COM according to the exceptional article Build and Deploy a .NET COM Assembly by Phil Wilson. And everything works fine in the sense that the .NET assembly is properly registered for COM, and compiled COM code can call it without any trouble. The only odd thing is that developing against the COM-exposed .NET assembly when using VB 6.0 or VBA requires that the programmer 'browse' to the exact file location of the associated .tlb file, after

Include folder in setup project

落花浮王杯 提交于 2019-11-30 13:48:47
I want to include a folder in a setup project so that when I deploy that setup the complete folder is also deployed to the install location. David Hedlund Right click the setup project, and select "View" > "File System", and from there you can access a lot of special folders like install folder, appdata, desktop etc, and add files to there, that will be created when you install the application. Make sure to set the "alwayscreate" property to true. The answer is good because it gave me clue on how to fix my problem. I think that my requirement was slightly different. I had to include contents

How Add a COM-Exposed .NET Project to the VB6 (or VBA) References Dialog?

旧街凉风 提交于 2019-11-30 13:45:48
I have created a .NET assembly that is exposed to COM according to the exceptional article Build and Deploy a .NET COM Assembly by Phil Wilson. And everything works fine in the sense that the .NET assembly is properly registered for COM, and compiled COM code can call it without any trouble. The only odd thing is that developing against the COM-exposed .NET assembly when using VB 6.0 or VBA requires that the programmer 'browse' to the exact file location of the associated .tlb file, after which everything works just fine. That is, the class library is not showing up directly within the

How can I create a windows installer MSI that does not require admin access

末鹿安然 提交于 2019-11-30 12:35:16
I've created an MSI windows installer that installs a plug-in which I wrote for a piece of software used at my office. However, a number of users here don't have admin rights to their computers, and IT is getting frustrated having to install the plug-in for them. My installer does nothing but copy a couple files, to locations that the users would otherwise have access to copy files to. Is there some way to modify my Setup project so that the resulting MSI does not require administrator rights? There's two approaches here: 1) Create an installer that doesn't require Admin privs because it doesn

How to add a checkbox in final step to lauch a exe in VS2010 setup project?

我怕爱的太早我们不能终老 提交于 2019-11-30 09:41:42
问题 Currently, I'm following the steps described here to add a checkbox in the final step, but it seems that the checkbox still exits when I do the uninstallation. Does anybody know why or how to do a changes? 回答1: You can try using control conditions to hide the checkbox during uninstall. For example, you can hide it when: REMOVE = "ALL" 回答2: You have add condition for your checkbox, look at ControlCondition Table. The script from your link adds CheckBox control to Finish dialog, and you have to