VS 2008 NET Installer Project - Shortcut Keeps Reinstalling Everytime
Jul 9, 2010I have Visual Studio 2008 and am using an installer project as part of the same solution that creates an installer for that exe.
[Code]...
I have Visual Studio 2008 and am using an installer project as part of the same solution that creates an installer for that exe.
[Code]...
I just published a new sample on the MSDN Code Gallery. This may be useful for the community here if you would like to deploy your application without an installer and still have an option to create a shortcut.
This Desktop Shortcut sample allows programmers to give consumers a way to easily create a shortcut for the application. Most installers automatically come with this feature, but some prefer to keep installers lightweight and provide the shortcut manually.[URL]..
I've decided to go with a Windows Installer (Setup Project) in VS Prof, rather than ClickOnce,I've added this project to my main project, and have right clicked and selected 'View -> Launch Conditions', it requires the .netframework 3.5.21022...
But I've created the installer project for .NET 2.0 framework, is this going to stop someone from installing the project without .NET framework 3/3.5?EDIT: I've found under the properties of that installer project, that .NET framework 3.5 and Windows Installer 3.1 was selected as a prerequisite, unchecked those, and checked .NET Framework 2.0, however the version under the launch condition .NET Framework is still 3.5, it should be 2.0
I want to create desktop shortcut for exe file through program. I do not want to use installer to do this. Can a piece of code in program do this?
View 1 RepliesHow can i create msi installer for my designed project in vb 2008
View 8 RepliesRecently I created one windows form application and also created setup project using VS2008.My application works with external software, which needs to be available on the PC.I want to bundle this external application installer in my installer, so that I can check if it is already installed and if not then install it and then install my application.I figured out how to work with pre-requisites that Setup project identifies such as .net framework?
View 1 RepliesI need to reformat my HD and will lose everything, including my VB stuff. I can't positively identify all of it's contents/shared folders/assciated files, etc so as to back it all up. I would like to know how difficult will it be to simply reinstall all of the software from MS, concerning the registration/licensing/activation process? Or will I just have to start w/a new copy/registration/licensing ,etc? By the way, I am talking about "Express Editions"
View 4 RepliesWhere do I put the shortcut icon for my mobile application in the Installer project for a Windows Mobile project so that when the cab is installed the icon will show on the Programs Menu?
View 1 RepliesI made a program that makes backups of a database when the user runs the application, etc. I never created something like this. I got all the code to make the backup, now the problem is to create it as a service.This is my form to the person choose the days and the hour to the process runs and install it as a service, and when it runs to be minimizated on the windows icons near clock and date and another option.
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
AddToStartup()
End Sub
Public Sub AddToStartup()
Dim Reg As Object
[code]....
I got this code to creates a short cut on the startup path to my project run Every time windows start's and do his job and close, but now I got a problem, how It should be to VB2010 ? And how it would make a run on the specific days / hour that persons choose ?
I was having error while making the installer in my program. I have images inside the debug folder and i use those images in my program. I successfully create the installer the problem is that when I run it it gives me an error message looking for my Images folder.
View 1 RepliesOS: windows xp sp 2 visual studio IDE: VS 2008
I have found this link for creating custom Install of setup in vb .net[URL]...To create the custom action
On the File menu, click New Project.In the New Project dialog box, select Visual Basic Projects in the Project Types pane, and then click Class Library in the Templates pane. In the Name box, type OpenWeb.
The project is added to Solution Explorer.
On the Project menu, click Add Class, and then in the Add New Item dialog box, select Installer Class.Accept the default name of Installer1.vb. Click Add.Switch to code view by clicking click here to switch to code view on the design surface (or by right-clicking the design surface and clicking
View Code). In the Code Editor, add the following code (which opens a Web browser) to Installer1.vb, under the constructor:
In my project properties I have the version/build numbers automatically incrementing... I'm on 1.0.0.16.
The problem is that with each new/updated installation, my build numbers aren't changing... even though my project properties page shows the appropriate version/revision incrementing. I created the installer project at version 1.0.0.13. Although I'm now at 1.0.0.16, My "About" form still shows 1.0.0.13.
I do not hard-code the version in this form... I use the following
Me.LabelVersion.Text = String.Format("Version {0}", My.Application.Info.Version.ToString)Hope this isn't too vague. The installer project creates a setup.exe and setup.msi file. When I publish my solution is also creates a setup.exe file.
I use VB 2008 express edition. I want to be able to make an installer for my project. If I run the executable file from the development computer, it works fine. When I try to install the program in other computer, it tries to download .net framework. Is there anyway to prevent this to happen? I have the .net framework installer in a CD.
View 2 Repliesso instead of when i build my project running the advanced installer t make it a exe i just went to my visual basic projects folder and ran it from there and it worked good, so i though if i make a zip file the files in it password protect, and just leave out the startup icon then my users can just click that to use my program while not being aloud into the source code, but after i zipped the folder the program doesnt work anymore, any way to do this?
View 22 Repliesi want to create an installer of my program.but i want it to be with the aid of a wizardcould somebody tell me how to create it. i dun know how to create an installer.
View 2 RepliesWhat actually is required to consider something installed on a machine. What happens in the background? I know VB offers an installer but Im trying to build my own from scratch. What do I need to do to accomplish this?
View 13 Repliesi've created a very simple .exe file on my project in vb winForms but i don't know if i have crystal reports, Database, .swf files on my project.
View 3 RepliesI'm trying to build a setup program using the built-in Visual Studio Installer. I'm using VS 2010 and working on VB.NET.For the most basic kind of program, I have an EXE file which works on a XML file (the XML file is treated like a database). So on a Windows 7 platform with UAC enabled, the best deployment is to install the EXE file in the Program Files folder, and the XML file in the application data folder, for security purposes of Windows. (Windows, now, does not allow creating/writing files inside the Program Files folder unless your application is running with administrative privileges).
So I have added VS Installer to my current project and have opened its File System Editor. So to create the above layout, I've added Primary Output to the Application Folder. Then I've added its shortcut to the User Desktop.Now I need to place my XML file to the application data folder. VS Installer gives the option of User's Application Data Folder, which is the %appdata% folder in the environment table. I need to access the All Users' Application Data Folder.
1) How do I access the All Users' Application Data Folder over here?
2) I tried using the User's Application Data Folder. It doesn't work. It doesn't create any folder in the %appdata% (e.g. C:UsersFarazAppDataRoaming). I tried to play around with various properties, like AlwaysCreate which is supposed to create a folder obligatorily. It doesn't create anything.
I created a small application and an installer project for it. I can install and also run it, only thing htat i dont like is that during setup, it downloads .NET Framework 3.5 SP1 and this takes long sometimes. I want to have it on the installation CD later.
I have seen in the installer's detected dependencies, that there is the 3.5 framework contained and it has a InstallURL property = [URL]..I am a little confused about all the Framework stuff on this site - so just 3 simple questions:
1) which file exactly do i have to download,
2) where to put it and
3) what to write into the property InstallURL then? (Maybe needed to change also other properties)?
how can i create a desktop shortcut for my vb.net project that i've done.?my project is a Sudok game.. .i mean how can i open it without using Visual programs?
View 8 RepliesI made a setup project and added a folder for desktop shortcut. My application includes database file as well. When I installed the application and ran the shortcut from desktop, it gave Desktop's path and said ABC.mdb not found.
View 2 RepliesI 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 RepliesI just created a game program out of VBE2008 and did the build process to turn it into a .exe file.When I did the build function I apparently missed the step of attaching an icon to the project.Now when I do a desktop shortcut to the .exe file there is no pretty icon - just an ordinary looking window box.How do I add a desktop shortcut icon to inside the project settings?
View 1 RepliesI have a VB Windows Application in Visual Studio 2003 complete with it's own setup project. What I would like to do is during the installation of that project is to install a shortcut icon on the desktop that points to the location of the .exe file that was just installed on the user's machine. Unfortunately this option in the setup is not easy to find (at least to me) on Visual Studio 2003. What would I need to do in order to get that shortcut icon to pop-up automatically?
View 3 RepliesI've got a global random type variable, let's call it rRandom.In my code, I generate a random number like below:
Dim iRandom As Integer = rRandom.Next(0, x)
9 out of 10 times iRandom is 0, the other time it was 1. The code isn't on a timer, it happens when I do something (say clicking a button), so the frequency of the code being called is about 2-3 seconds, I say this because I've had similar issues when generating random numbers really fast in a timer, or with a for loop IIRC.X is a variable that, presently, starts at 3, and will decrease until 0, in which it'll return back to 3. Obviously, if X is 0, iRandom will be 0, but it shouldn't be 0 all the time.I'm declaring the variable globally because I remember, again, having similar issues using local variables, idk whether I should be or not.
I'm updating a database every few minutes in my program but I get this error
Duplicate entry '127' for key 1
Everytime the db row Id reaches 127.
Is it possible to create a custom start menu shortcut link?
The only possibilities I see in the setup project are shortcuts to folders or primary output.
Update:
What I ended up doing is creating a custom action on commit that dynamically creates the link using Windows Scripting Host. Then on uninstall, removing the link.
I'm currently developing an application for a POS Terminal using VB.net. Our project is approaching the last stage of development and I've been tasked to create 2 installers. 1 for Initial Installation, and the other for upgrade installation.
The project is composed of several elements. These are:
1. The application executable
2. Common DLLs that we developed
3. some resources (.resx and XML)
The requirement for the upgrade installer is that only those files with modification should be installed. (i.e. if only the xml or resx files are modified those are the only items that will be reinstalled, since the size of the upgrade installer is a consideration so we cannot reinstall everything).
I'm using Visual Studio 2005 for my deployment project but I'm a bit confused about how to set the properties of each file in such a way that during the upgrade, only the files that were modified would be updated and the rest of the files will not be removed since I'm setting RemovePreviousVersion property to True. I have a hunch that I need to do something with the custom action but I haven't been able to figure it out. The upgrade installer setup is almost the same as the initial installer except that all files are excluded.I tried to acquire a copy of Phil Wilson's book (The definitive guide to Windows Installer) but its not available in our local bookstore and it would take too long to order it.
Basically while tinkering with the settings/properties there are instances where the dll was not updated and there are also times when the application exe was removed.
I already verified that the Product code is the same for both installers and that I'm sure that the version number is being incremented for each upgrade.
If I will be redoing both installers from scratch, how should I go about it?
I'm also confused about the Condition property and the transitive property.
Triying to use the built in Visual Studio 2010 to install a couple of files and after that is done to run another installer package (3rd Party Installation Wizard).
View 1 RepliesFor reasons that are beyond my control, I have three Projects. Projects A and B reference project C. Project A references project B so that it can open a large form in project B. I now need to open that large form from project C, but VB won't allow me to add a reference from C to B because that would create a circular dependency. I found a way around it, though. I created a Timer in A, and when I opened C from A, I passed in that timer. When the user performs a certain action, I enable the Timer from A, and this causes C to open B for me.
View 2 Replies