What's the protocol for packaging external software with InstallShield? - wpf

My WPF project requires Adobe Reader. Apparently when I try and run the installer, it says I need to have it installed before I run the installer for my project.
I was wondering how do I package it along with InstallShield so that the user can select the option to have Adobe Reader install before installing the main project instead of having to search for it online themselves to install it?
Is this even possible? I tried to search online but I'm having hard time finding results.
Right now I'm using InstallShield Limited Edition for Visual Studio 2012.
EDIT:
Here's one screenshot where I picked the settings:
EDIT #2: I found a redistributable .exe of Adobe Reader 9.1. Now, I am wondering how I can tie that into InstallShield?

Related

.vdproj is incomatible in VS 2019 - Community Edition - and reload project give load error

I'm unable to run a .vdproj in Visual Studio 2019 Community Edition. I tried the below link which hasn't worked either
Visual Studio - vdproj is incompatible
The project shows incompatible and after installing the Installer Project as Extension given in the above link , the project load is failing. Unable to proceed. Please help
This is redundant question.
Please follow this link for the answer:
Visual Studio - vdproj is incompatible
Or follow these Steps which is also taken from that link:
Go to Extensions > Manage Extension
Select Online > Visual Studio Marketplace
Search for Microsoft Visual Studio Installer Projects
Download the package
Close the Visual Studio to start the installation.
Follow the instructions to install the extension.
Once installation is completed. Launch again the Visual Studio.
In the Solution Explorer, look for the .vdproj project
Right click .vdproj project, click Reload
If all of the mentioned remedies not help, there is another possibility, which was the case here in VS2019 Community.
Installed extensions can not only be uninstalled, but also be disabled. In that case it looks like so:
The "Disable" and "Uninstall" buttons show up after a right-click on the corresponding object.
In my case and to my big astonishment, the Installer Project was disabled (showing "Enable" in the button), whoever did it.
It cost me about 2 hours to find out, some restarts of VS2019 and wondering about useless instructions about having to install the extension. After enabling, everything worked like before. Sigh of relief.
After doing lot of research on this topic, Visual Studio 2019 Community edition , is not supporting these kind of projects. Older versions like 2015 , 2010 supports.
Or convert these projects into a console application and run it for local setup and debugging.

Windows Installer 4.5 Doesn't appear in the prerequisites component list

From Prerequisites on the setup property pages, I selected the option to Download prerequisites from the component vendor's web site
There is no Windows Installer 4.5 in the prerequisites to install option..
because every im installing my setup using the sqlexpr_x64_ENU.exe in custom actions to install, run the setup after the extracting sqlserver it pops up the window says
There is a problem with this Windows Installer package. Aprogram run as part of the setup did not finnish as expected. Contact your support personnel or package vendor
im using VS2017 on windows 10
Exclude MSI Engine: You should not include Windows Installer 4.5 with any package these days. This runtime is from back in the day of Windows Vista - we are long since on version 5. Windows Installer should be deployed only via Windows Update as of today - in my opinion. Leave the runtime out of your setup.
No Concurrency: You can not run an MSI setup from within another MSI setup via a custom action. This is due to technical restrictions. There is a mutex set when an MSI runs its actual installation sequence, and triggering another installation sequence from within it will fail. A similar answer on the topic.
Setup.exe Launcher: What you need is to install your pre-requisites via a setup.exe launcher instead. This runs installations in serial, not in parallel. Which version of SQL Server are you installing? I see only a couple of versions available in the Visual Studio Installer Project launcher.
Other tools have features to allow you to install a setup.exe with embedded packages of various kinds in sequence. I have explained a myriad of times how to do this in previous answers. Here are just a few that I found quickly:
SQL Server named instance with Visual Studio 2017 Installer project (basically exactly the same issue - I suggest WiX the open source, free alternative)
Custom installer for application in Visual Studio 2017 (I suggest WiX and several commercial tools that are easier to use - maybe try to read this one)
Cannot call command.exe(SQL Server Setup.exe) while calling C# CA with parameters
How to create a MSI file which simply copies a directory to Program Files? (tools list)
Combine exe and msi file in one installer
Visual Studio 2017 Installer Project - include VC++ 2015 Redistributable
The general situation:
The problem is not Windows Installer 4.5, it's the fact that you are trying to do a recursive MSI install (the SQL one from inside yours) which is not allowed and will fail.
The MSI 4.5 engine is pretty much obsolete, about 10 years old, and anyway it's not the issue, and it's not clear why you believe it is. But it IS in the Prerequisite list on my VS 2017 setup project prerequisites - see 3 - even though you almost certainly don't need it.
There are some SQL Express options available in the Prerequisites of the VS setup project - right click the project in solution explorer and choose Properties, then Prerequisites.

Visual Studio 2015 CE Setup Installer: Redistributable Package

I have my my setup project in (Visual Studio 2015: Community Edition) ready to be built and create my program installer. But, obviously the program will not work on other computers without the appropriate redistributable package installed on the clients computer.
So, I need to set that up in my project but I do not know how. I read in a post on another site that it is located in:
Project>>Setup Properties>>Prerequisites
But, all I just see are selectables for ".net framework" related things. Also, I read that merge modules are not good to use due to servicing issues.
If you have any insight into whether I am needing to download an extension for the correct prerequisite to appear, use merge modules, or something else it will be greatly appreciated!

InstallShield vs Visual Studio

When I deploy my application in VS2010, I see two options: InstallShield LE and Visual Studio Installer. Why are there two options? What is the advantage of using InstallShield LE over Visual Studio Installer?
To update this a little, Microsoft seems to have thrown in the towel on their own installer project type. It is not included in the Visual Studio 11 developer preview, and there are forum/blog posts that indicate this is no longer a supported product. If you are searching for what to use for new projects, I would steer clear of the Visual Studio Installer. Hopefully when VS11 finally is released, there will be a free version of InstallShield included.
These are just default tools that can help you create simple installers for your applications. Most difference are UI related, there's not much functionality in either of them.
If you want to choose a setup authoring tool, take a look at these threads:
https://stackoverflow.com/questions/4621478/what-is-the-best-windows-installer
How to create an installer using Java?
What is the best installer?
There are lots of threads like this which mention free and commercial setup authoring tools.
Basically, if you want a simple installer, you can use Visual Studio setup or InstallShield LE. If you want more advanced features, you need to find a different setup authoring tool that fits your needs.

WPF Package Load Failure?

Package Load Failure
Package 'Microsoft.VisualStudio.Xaml' has failed tot load properly. . . yadda, yadda, yadda.
So now what? This package is somewhat important since I was hoping to do some WPF stuff this afternoon. Tried running without it and my XAML design view is gone.
I already tried "devenv /resetsettings" from the command prompt.
Thanks,
Scott
Try repairing the install.
Control Panel
Add Remove Programs
Select Visual Studio 2008 and choose "repair"
Did you recently install any updates to Visual Studio or any Add-Ins? If so can you please list them?
Install SP1: http://www.microsoft.com/downloads/details.aspx?FamilyId=FBEE1648-7106-44A7-9649-6D9F6D58056E&displaylang=en
I had this problem after a fresh install of VS2008 Team System. Tried loading the updates, running setup, re-installing. No luck.
Installed SP1 and bingo! No more package load failures.
I -FINALLY- saw this error going into Tools|Options|Environment Fonts and Colors after trying everything I could think of to get it not to crash when I chose Tools|Import and Export Settings.
I had this problem when I installed Visual Studio Professional.
My theory was that it was because I already had Visual C# 2008 Express Edition installed.
Once I uninstalled both then reinstalled Visual Studio Professional it worked.
This is consistent with the OP's solution, which was to uninstall anything else which implemented XAML functionality.
In my case, just reinstalling SP1 didnt worked
Then i saw ive had two languages mixed in the IDE. So ive checked the installed programs and found:
Microsoft Visual Studio Tools For Applications 2.0 ENU
Microsoft Visual Studio Tools For Applications 2.0 Language Pack - ESN
When ive uninstalled the additional pack, the design views started to work again
In my case the machine.config file had gotten some bad XML due to a recent installation. There were two closing tags. After we corrected the bad XML, .NET works just fine.
Thank you Abraham for the hint. I was missing an end tag in my .NET 2.0 x86 machine.config.
However I had already spent hours repairing, uninstalling, installing and installing service packs.
WOULDN'T IT BE NICE IF VISUAL STUDIO 2008 GAVE A "MACHINE.CONFIG" CORRUPT ERROR!

Resources