Executable Not Requesting Elevated When Part Of Deployment Project

Sep 13, 2011

I've created an executable that's called by another app for processes that require UAC elevated privileges. If I build this project with the below manifest it requests UAC fine, if I add this projects output to my setup project it creates it without UAC?[code]....

View 1 Replies


ADVERTISEMENT

Create Event Log Source As Part Of Installation - Windows Forms App, Vs Deployment Project

Mar 27, 2011

I have a vb.net windows form app that I am deploying as using the visual studio deployment project. The app needs to write event logs to the application log in the event viewer. For reasons explained here I need to create the event source during the installation process. Something like this to run as part of the installer

If Not EventLog.SourceExists(My.Application.Info.ProductName) Then
EventLog.CreateEventSource(My.Application.Info.ProductName, "Application")
End If

That code needs to be run during the installer with elevated privileges. So my questions are:

How do I execute that code above as part of the installer? How do I get the installer to do the UAC prompt to allow that code to run as part of the installation?

View 1 Replies

Deployment :: Can An Executable Program Create An Executable File

May 17, 2012

I have a program that outputs a file. I want the user to be able to just double-click the output file and launch the program, just like Word and Excel. In Word for instance, one doesn't necessarily have to open WORD then click on File--> Open and locate another Word doc. He can just go to the folder and open the Word doc. I want to implement the exact scenario in my program.

So far I have tried creating TextFile and added it to the Resources. On FormLoading, I simply I stream-read the Resouce file, but I can't write to the Resource on FormClosing, since the Resource is ReadOnly. Also, the Resource is built & compiled so I suppose you can't add anything to it at run time.How you lunch an output file without launching the Executable program that created it?

View 1 Replies

Deployment :: Setup And Deployment Project With Ms Sql Server?

Nov 3, 2009

i'm developing an application vb.net with mssql server as database. on my pc it works. but i don't know how to make it works on my customer's pc.anybody have some tutorial regarding the creation of a setup and deployment project with ms sql server.my first doubt is: how can i determinate the right connection string?

View 1 Replies

Deployment :: Setup & Deployment - Copy/import 2 Folders And There Sub-files/folders Into S&d Project?

May 7, 2012

Have built a project and associated it with a Setup&Deployment Project. The S&D project needs to contain 2 main folders (under User's Desktop) with various formats of files (xmls, txts, dlls) inside them and several subfolders. How can i copy/import these 2 folders and there sub-files/folders into my s&d project?

When adding them in the usual way, they are copied and defined a source path onto the current pc. You can understand what errors this might create when an another targeted pc does not contain those files to the exact location. Is there any way to copy them locally or somehow import them?

View 5 Replies

Running Non-elevated Process From Elevated Process?

May 18, 2010

How can I have my elevated program start a new process (i.e. execute an exe) as non-elevated?I have an application that is running as an administrator because it was started by the installation program that installed it. I need that program to be run as the user logged in with normal permissions, not the elevated privileges that the installer gives it. I was just going to create a wrapper
application that runs the program non-elevated. how I would start a process in VB with non-elevated privileges?

View 1 Replies

Multiple Project Executable's?

Jan 17, 2010

My project will be a collection of 3 projects that have similar GUI's and call on common assemblies. I want my project to contain 3 executable files when published that will load one of the designated smaller projects. Each of the smaller projects is designed to perform a different task, yet they are all similar in terms of looks and how the user interacts with the program. The best way to picture it would be MS Office. All the office programs (excel, word etc..) are part of the same package, and look similar but they perform different tasks. You can load any of these programs by opening the relevant .exe file, which is exactly what i want to do with my application.

View 4 Replies

Making A Project Into An Executable File?

Jun 28, 2010

I'm very new at using Visual Studio (about 3 days!). I want to create a project that I created into an executable file. The help menu states that I should go under the 'File' drop down menu and select 'Make' to convert into an .exe format. However, the 'Make' selection is not present under the 'File' drop down menu. How can I make a project into an executable file??

View 9 Replies

VB2005 Add Multiple Icons To Executable Project?

Feb 26, 2010

Is there an easy way to add more than the default icon to a project, giving the user a choice when Create Shortcut/Change Icon is used?I can find nothing recent on this anywhere.

View 1 Replies

VS 2010 Get Error When Open Finished Project / Executable

Aug 30, 2011

[code]When JIT debugging is enabled, any unhandled exception will be sent to the JIT debugger registered on the computer rather than be handled by this dialog box.

View 9 Replies

Adding References To A Stand Alone (no Project) Executable In Visual Studio

Dec 20, 2011

I am creating a visual basic executable in Visual Studio but NOT in a Project.I would like to add some references (dll).How can I do that?

View 1 Replies

Sql - Deployment Of .Net Project?

Dec 1, 2011

I am working on a Project which uses SQL Server,Crystal Report. And the project is almost complete and i am going to publish it.Now I dont want to add the Prerequisites for the project as it will make the size of the exe to some 400mb but my application exe is just 4mb.

Now currently i have seen something in the Reference Section of Project Properties.That is the dll Control that i am using for Buttons has the Column called Copy Local with a value of True but for CrystalDecission.Shared its just False, so is this value changing to True helps me or not... that is i should not have to include as Prerequisites for crystal report..

View 1 Replies

How To Use The Setup/deployment Project

Jun 21, 2010

My suggestion is how to use the setup/deployment project - and also how to add it/incorporate it into the project being built.

View 3 Replies

VS 2010 Deployment Project, How To Run Exe At End

Feb 25, 2011

I've created a deployment project to install my app using Visual Studio. How do I get the setup wizard to run my app at the end and pass it a command line parameter?

I need to set permissions on a folder so I was going to call my app with a parameter and do it from there whilst the user still has admin rights.

View 2 Replies

Created A Setup And Deployment Project?

Oct 2, 2010

ive just completed my app and i created a setup and deployment project.Complier forced me to exclude wmp.dll

i get this error for about a second before the app launches. Losing my splash screen because of it

I thinks it has to do with the .dll, but ive no clue how to fix

View 4 Replies

Deployment - Relative Project Folders

Jul 24, 2009

PROBLEM #1: I have a program that accesses several XML files that are located in a subfolder called "xmlfiles." This folder is a sub-folder in my project. I am using "Application.Settings" to store the locations of the XML files. For example, I have an entry for "JobsXML" that has a string with the file path of the XML file to load. To get these files to load, I had to use relative references: The path settings for "JobsXML" is "......xmlfilesjobs.xml"

I have to go up 3 directories because the files are in "debugin" during design. This will not be the case at runtime. This arrangement works fine in the editor, but when I make a "ClickOnce" package, the relative path will no longer work for installed applications. The directory will be different.

How can I setup my code so that the "xmlfiles" subfolder will be correctly used at runtime? I need to be able to run this from my project folder under "My Documents/Visual Studio 2005/Projects/etc..." and also, I need it to work from the runtime directory that the user installs the program to. So if the user installs the package to "C:temp" then the code should use the setting for "JobsXML" by going to "C:empxmlfilesjobs.xml."

PROBLEM #2: There is an attribute in some of my XML files that is also, a relative file reference. I have another subfolder called "images" that also resides in my project. This folder contains images that are loaded at runtime. In my XML file, each node has an attribute, "filepath" that has a value of "......imagesfilename.jpg". I also need to be able to access this relatively, just like the XMLfiles I mentioned in PROBLEM #1.

I have tried different combinations of StartupPath, Path.Combine and a few others, with no success. I am new to this so I could use some sample code to put this together correctly.

View 7 Replies

Deployment :: How To Create A Upgrade Project

Dec 29, 2009

I have a question for many years.. Suppose if I Deployed a project using Setup Project. After some time, I added some features or modify it on customer demand.

1) How do I make a upgrade project so that the user runs the setup and the new changes are upgraded on the client system.

2) How do I automatically create ODBC System DSN Connections.

View 3 Replies

Deployment :: Make Exe File Of Project?

Oct 24, 2008

I want to make exe file of my project but i don't know how make.P

View 5 Replies

IDE :: .net Deployment With Multiple Project Output?

Jun 16, 2010

I am trying to create a deployment project for a solution of many projects and two start-up projects. I understand that there are 2 primary outputs in this case. The solution will not work/make sense if either of the two outputs is not running.

At the moment, I have created a set-up project with the multiple outputs, but then I will have to open the outputs individually for them to work. I am wondering if there is a way to create a desktop icon that targets both outputs simultaenoulsy.

View 2 Replies

Setup And Deployment Project Walkthru?

Jul 7, 2010

setup and deployment project walkthru? creating a setup and deployment project in Vs2008

View 7 Replies

VS 2010 Setup & Deployment Project?

Apr 26, 2012

For my .Net desktop apps I usually create an MSI installer (I create a 2nd project in my solution, a Setup & Deployment project) and I zip the setup.exe file with the <appname>.msi files together and put them up for download on my site. The installer will go through the process of asking where they would like to install the application (it creates the needed shortcuts and everything).

Right now I'm looking at adding a feature to some of these programs where it'll periodically check it's corresponding xml file on my web server and see if there's a newer version of itself available. I have this portion working just fine, where I'm stuck is that I would like to have it download a separate msi installer to update itself.

The idea is that it would download this different msi file, execute it while the app closes itself. This msi would not ask any questions, it would simply update the needed files in whatever location the first msi installer put the app. When this updater msi is done, it would just re-start the application.How would I go about making an msi installer that doesn't have any prompts and installs the application where ever the first msi installer put it (where ever the user chose to install it to)?

View 8 Replies

.net - Replacing Sections In Web.config Using Web Deployment Project?

Jul 10, 2009

I am trying to replace the following section to blank section

<secureWebPages mode="RemoteOnly" encryptedUri="abc.co.uk" unencryptedUri="www.abc.co.uk" maintainPath="True" warningBypassMode="AlwaysBypass" bypassQueryParamName="BypassSecurityWarning" ignoreHandlers="WithStandardExtensions">
<files>
<add path="abc.aspx"/>
</files>
</secureWebPages>

But after executing it is giving me the following error

WDP00002: missing section secureWebPages/configuration.

View 1 Replies

Add Icons To Shortcut In Setup/deployment Project

Jun 30, 2010

I would like to add a choice of icons to the desktop shortcut I add in setup/deployment. I can add one icon, but when I run the project there is no option for changing it. The "change icon" button is greyed out. I've made a dll containing 3 icons and added it to the setup/deployment project (also added it to the test project).

View 1 Replies

Alternate For Setup And Deployment Project In Program?

Mar 5, 2010

Setup and deployment project template is missing in my installation

View 2 Replies

Backend Server Detection After Project Deployment?

Mar 30, 2010

I have recently learnt vs '05 and am creating a project in vb.net '05.my question is-During project development, we connect it to MS SqL server 2005 express installed on my system and it works.( I use add datasource wizard,add sqldataadapter,add gridview control,generate dataset,connect dataset to gridview method). But after the project is finished and we create its executable, the project will be run on adiffrent machine with a different server name and hence a new connection string will be required.

How can i make my project detect server details and connect to it, at runtime ? because the user is only expexted to start the server and open my application.the app must connect to the new server on its own. If anybody has an answer or if you know some resource where i can find it, please post here. Any suggestions are welcome.

View 1 Replies

Deployment - Creating A Setup Project And Building?

Jun 21, 2009

When i am creating a setup project and building it then i am getting a setup file using which if i install then it is getting installed to single user only i want the setup to build run for every user in that system and the users can access it.

View 1 Replies

Deployment :: Project Output In Custom Location?

Sep 1, 2009

im still fairly new to this. i have written a program, built it and created my setup project and can install it no problems, however, in the "setup view" where you have the threefolders "Application folder" "Users Desktop" and "Users Programs menu" ... u know "the file system view/setup1" ... well here is the problem, i click on "Application folder" and change the "default location" ... so i can specify the program is installed in "C:ProgramFilesJohns AppCalculator" ...... BUT when i build the setup and install the program it does not appear in this location !! arghh i can see all the program files on my pc ... except mine ( i have tried all day and all night the only way i can get it to appear here is by INCLUDING the "project output" into THIS folder ..... even though i only want it to be on the "users desktop" ....

View 4 Replies

Deployment :: Unable To Get Rid Of Project Reference / Dependency

Jun 22, 2009

I have a project that I am attempting to deploy. In my project I was using a SQL Express DB and after my first build I installed on my test PC only to find that it was going to make me install SQL Express which I defiantly do not want so I decided to scrap the DB.

I excluded the DB from the project, when into the project properties pages and removed all references to SQL and system.Data, Went into the code and removed all the "Imports" statements for SQL and Data and commented out all the SQL DB code. I then tried another build and had the same results. I started looking at the files and then I realized I did not change the app.config file. I went into it and deleted out the connection string entry. I built the project again only to have the same result. I cannot seem to see what could still be referencing SQL. Isn't commented code ignored?

View 3 Replies

Deployment Results In Earlier Version Of Project?

Jan 11, 2010

I am using VB.NET 2008 Express Edition and INNO Setup. When I create a setup and run it, the resulting install is an older version of my project from, I think, 2 or 3 days ago. If I go back to my project in the developer window and run the project, it is clearly a newer version than the install. Since this installed version that comes up was done I have added a form and made many other changes.Is it because the build didn't exeucte? When you run the project doesn't it execute a build every time?I tried this again from a backup. (The backup is much more recent than the version I'm getting.) And it still does the same thing.Why does the install not match the project? It is not possible to go into the project and add the changes because they are already there.

View 3 Replies

Disable Warnings In Program For Web Deployment Project?

Jan 16, 2009

For our VB.NET websites we use SVN for Source Control and CruiseControl.NET for continuous integration.

To use the SVN build number in the compilation by CruiseControl.NET we need to use Web Deployment Projects. We then replace in the configuration file the Version field with this variable from SVN Labeller[code]...

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved