InstallShield Visual Studio Remove previous version - visual-studio-2012

I'm attempting to update a current windows form project through installshield. I'm following the steps to the second answer on this question: Configuring InstallShield LE to remove previous versions built using Visual Studio Setup Projects
However I'm hitting a snag: When I add an update path, it brings up a file dialog, and I can't locate the MSI file. I have the setup.exe stored on a shared drive.
I'm a little lost. I apparently cannot build my install project if I create a new Upgrade Path and cancel out of the dialog.

Related

Installshield Include redistributable with program setup exe

Just got InstallShield Pro and I've created my setup singleimage executable.
I need to include the Visual C++ 2005 SP1 redistributable within the setup.
I've ticked the redistributable I want in the menu under 'Application Data'.
I've right clicked it and changed the 'Build Location' to 'extract from setup.exe'.
However, when I build my setup, it has a folder called 'ISSetupPrerequisites' which has the VC++ redistributable in it.
Is there anyway I can incorporate this in to a single exe with my installer?
If I remove that folder it downloads the redistributable from the internet.
Thanks
Yes. You can include the contents of the ISSetupPrerequisites folder inside the exe by changing their location in the setup.exe tab of the Releases view. You can change this on a .prq by .prq basis by right clicking a prerequisite in the Redistributables view and selecting a location there.
The 'Prerequisite' section of an InstallShield project includes modules which are external to the installation itself.
What you need to do is use the 'Merge Modules' feature (under Application Data => Objects) and select the relevant ones to include by your installer.
Another option is to manually add the redistributable exe in your Support dir, and call it during installation using InstallScript, like this:
LaunchAppAndWait("cmd","/c start /wait \"" + SUPPORTDIR ^ "vcredist.exe" +
"\" /q /norestart",LAAW_OPTION_WAIT | LAAW_OPTION_SHOW_HOURGLASS);
Note that if you're going to use this method in an InstallScript MSI project, you must call it during OnFirstUIBefore() or OnFirstUIAfter(), otherwise you will get an error regarding nested MSI installations.
I added a post build custom action aver the setup dialog success. Added vcredist_x86.exe to the install. And put /install as the command line - which is the only command line option that worked for me.
If I did it any other way the redist error-ed because two installs were going on.
In the View List under Media, click Releases.
Select the specific release.
Go to the Setup.exe tab.
For the InstallShield Prerequisites Location setting, select Extract From Setup.exe.

Unable to locate package source : vcRuntimeDebug_amd64\cab1.cab visual studio

I tried to install Visual Studio 2012 . but it showing me "Unable to locate package source" I can select "Download from the internet" or "Provide a location to search for the packages" And this is path that comes up:
C:\Users\JA\Download\packages\vcRuntimeDebug_amd64\cab1.cab
(the 'packages' folder does not exists) When I select to download from the internet its showing up again after some time, I searched for "vcRuntimeDebug_amd64" folder but it doesn't contain "cab1.cab" file ;/
Note please, that i runned setup file as administrator and i disable firewall .
I had the same problem but with Windows Phone 8 SDK. I tried several things (which are detailed below, in my previous answer), and the best option was to download the ISO, found in the Install Instructions section:
http://www.microsoft.com/download/details.aspx?id=35471
After finishing, it said it couldn't download that runtime, but at least the emulator is running fine. I guess you could manually download that runtime
afterwards if you have any problems. Here's the link:
http://www.microsoft.com/download/details.aspx?id=30679
Previous attempts:
I downloaded the Visual C++ Redistributable for Visual Studio 2012 Update 4 to see if that way the installer skipped that step, but it didn't work.
Then I looked for cab1.cab in my disk and found it in several folders, being this one the one that worked:
C:\ProgramData\Package Cache\{CF2BEA3C-26EA-32F8-AA9B-331F7E34BA97}v11.0.61030\packages\vcRuntimeMinimum_amd64
Of course that GUID will be different in your case, so you should look for a vcRuntimeMinimum_amd64 folder.
Inside that folder was not only the cab1.cab but also a vc_runtimeMinimum_x64.msi file. When I told the installer to use that folder, it still didn't work. Then I chose "Browse" but when I opened that folder it didn't show any file because the installer was looking for vcRuntimeMinimum_x64 (without the underscore). I typed "." in the textbox so it showed all the files, I chose vc_runtimeMinimum_x64.msi and the installation continued. It took a while but it worked.
Later I had the same issue with sdk_tools35res.cab. I told the installer to use v3.11.50727\packages\sdk_tools35res\sdk_tools35res.msi and the process continued.
But in the end, I got three errors: Tools for .Net 3.5, MS VC++ runtime and .NET 4.5 SDK. So then I decided to download the ISO.

Context menu does not display "add transform" in console job when using slow cheetah

I assume this is a simple fix considering I don't see any other posts about others having this issue. I am using VS2012 and I added slowcheetah 2.5.10.3 to the project using the nuget package installer.
I have tried opening a new console application as well as a unit test project, but in both I am not able to "add transform" to my App.config. The option in the context menu doesn't exist...
You will need to install the SlowCheetah Visual Studio extension to get the additional menus in Visual Studio. The NuGet package only adds a .targets file to the solution which is useful for command line (build server) scenarios.

Visual Studio 2012 - Can't create win32 projects

I'm using Visual Studio 2012, update 1 on a Windows 8 machine. When I try to start a new win32 project using the application wizard something weird appens:
the windows that welcomes to the wizard has three empty bullets under "these are the current project settings". Both the cancel and the finish button do not work.
The folder for the application is created but no files inside.
please help!!
I solved my problem forcing a "clean" install of VS2012. ('clean' means that also the shared packages were uninstalled). Presuming that the installer I used to install VS2012 was on d:
D:\vs_premium.exe /uninstall /force
Once reinstalled, the problem was gone.
I am running Visual Studio Express 2012 for WP on Macbook via Parallels.
I did the update of VS today and could not load my project (HTML App, #C) nor create new projects afterwards.
The solution was to go to Windows program uninstall for Visual Studio Express 2012, BUT choose option "Repair". It took about the same time as the update but I was able to create new projects afterwards (my existing own app project from November 2012 also works).
Before I "repaired" the installation, I have removed manually from VS->Tools->Extensions and Updates a few packages added "Nu Get Package Manager and Packager". I am not sure if the latter is really needed.
Additional info: My VS 2012 Express for Windows8 installation worked and works w/o issues.

Visual Studio 2012 Windows service .vdproj project migration

I'm trying to move a solution I have over to Visual Studio 2012 and one of the project types is .vdproj.
According to this link this project type is not supported in Visual Studio 2012:
MSDN says they recommend that you use InstallShield Limited Edition for Visual Studio.
The problem is, when I open up my solution in VS2012 and try to add a new "Enable InstallShield Limited Edition" project to my solution, I get an error message saying:
Creating project 'test'...project creation failed.
Why might I not be able to add a project of this type to my solution?
If I make a new empty solution I can't make an InstallShield project it in either.
I'm going to try to download InstallShield limited edition and see if it does anything.
I tried out that InstallShield download, and it added two extra project types, but I'm unable to create either of them. I'm able to add normal website projects to my solutions just fine, but not deployment projects.
The installer was named the same, but this one prompted me to re-start. After re-starting I was able to add an InstallShield project, but it gets created in its own solution. So, it looks like now I have to figure out how to use it, and I'll be good to go.
It's looking like the limited edition doesn't have support to install Windows services.
This will probably be long and boring because there's lots of steps, but I'd like to write up how to move from a Windows service installer .vdproj to the new InstallShield LE that's available in Visual Studio 2012.
Step 1: Create a merge module (.msm)
Follow the steps of this guide.
Notes:
You will need to install WiX 3.6 and isWiX
The latest release of IsWiX doesn't enable the Tools menu item in Visual Studio 2012. Edit the file: C:\ProgramData\Microsoft\MSEnvShared\AddIns\IsWiXAddin.Addin (XML) and clone the HostApplication element and update 10.0 to 11.0.
In step #8 of the guide, it references a code tab. This has been moved to the XML Editor item in the bottom of the left menu
I left the MergeRedirectFolder empty for my installation
Here is my isWix files view:
After you're done with the guide you should have an empty .wxs file that looks something like this:
Using the Component XML element pulled from here you should end up with a .wxs file that looks like this:
Hit build and you should now have a .msm file.
Step 2: Adding merge module to InstallShield
Go though the wizard to setup the basic install information like company and version information.
Find the redistributables view in ISLE. Right click the list and select browse for module. After your module is found and added, right click the modules and select properties. Set the destination folder drop down to INSTALLDIR. I had to set mine to the lowest level folder I created for my install path, so you might have to experiment a bit.
Build Project, and test on virtual machine
Redistributables Screen
If you're getting errors about the path being too long you might need to change the release location to something close to the root.
Here's a list of all the build errors for reference.
Now you should be able to run your installer and have it install/start a Windows service. A lot more work than .MSI files, we got it to generate in Visual Studio 2010, but overall it was not too bad.
While there is no easy or truly supported solution for Visual Studio 2012, Visual Studio 2013 users can get an extension from Microsoft in the Visual Studio Gallery.
I found this post which says you must download InstallShield first. It's a very confusing way to work. I suggest to vote up the post on the connect site and give them comments letting know how poor that is. They could at least give a more descriptive error http://connect.microsoft.com/VisualStudio/feedback/details/732196/project-creation-failed-for-installshield-limited-edition#tabs

Resources