Custom Action Install runs on Windows 7 but not on XP when update setup project to VS2010 - visual-studio-2010

I had a msi installer which has custom action install and uninstall runs perfectly on windows xp and 7. That project was on vs 2005. Then I update that to vs 2010. Now it works fine in windows 7
but when I try to install it on windows xp sp3, it is not working.
I'm getting "There is a problem with this windows installer package..." error. It seems my custom action install don't get start from the msi.
what could have gone wrong?

It's likely a dependency problem. It's hard to say without knowing what language your CA is written in (C++?) but check that you have the right dependencies either linked to your CA or installed on the target machine. Depends is your friend.

Error was I'm missing mfc100.dll in Win XP. When I installed Visual C++ redistributable package 2010 for Windows form it works fine.

Related

Windows Runtime metadata is invalid in SDK - ITIL00005

I can compile my UWP app built with Xamarin in Debug-mode, but when I try to compile it using Release->ARM mode, these errors occurs
ILT0005: 'C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\tools\Gatekeeper.exe #"C:\Users\Source\app\project.UWP\obj\ARM\Release\ilc\intermediate\gkargs.rsp"' returned exit code 1
Error: Windows Runtime metadata is invalid in Windows SDK, follow the steps in http://go.microsoft.com/fwlink/?LinkId=733341 to repair your installation.
I tried to reinstall using the Windows Software Development Kit - Windows 10.0.10586.212 and Windows Software Development Kit - Windows 10.0.26624.
Shall I have both Development Kits?
Or which one do I have to remove?
Or what can cause the problem?
And how shall I fix it?
I am running Microsoft Visual Studio 2015 Enterprise Update 2 and Windows 10 Pro version 1511.
I have tried this, but without success, as I am running Visual Studio in English.
My target and min. version is set to Windows 10 (10.0; Build 10240)
If you remove all Windows SDK's, you can let Visual Studio download them, which worked for me.
Otherwise you can download the Windows SDK's and install it.

Stuck while installing Visual Studio 2015 (Update for Microsoft Windows (KB2999226))

I am trying to install Visual Studio 2015 to my Windows 7. I seem to get stuck in this screen while installing it. It has been like 3 hours now and still stuck. Tried installing that update manually but had no luck since it just kept loading as well (Searching for updates).
Any ideas?
The same thing happened to me. Here is what I did in order to get it successfully installed. I downloaded KB2999226 update from Microsofts website here: https://www.microsoft.com/en-us/download/details.aspx?id=49093
After installing this package, I started the installation process again. That worked for me.
I would like to give you a background on Universal CRT this would help you in understanding as to why the system should be updated before installing vc_redist.x64.exe.
A large portion of the C-runtime moved into the OS in Windows 10 (ucrtbase.dll) and is serviced just like any other OS DLL (e.g. kernel32.dll). It is no longer serviced by Visual Studio directly. MSU packages are the file type for Windows Updates.
In order to get the Windows 10 Universal CRT to earlier OSes, Windows Update packages were created to bring this OS component downlevel. KB2999226 brings the Windows 10 RTM Universal CRT to downlevel platforms (Windows Vista through Windows 8.1). KB3118401 brings Windows 10 November Update to the Universal CRT to downlevel platforms.
Windows XP (latest SP) is an exception here. Windows Servicing does not provide downlevel packages for that OS, so Visual Studio (Visual C++) provides a mechanism to install the UCRT into System32 via the VCRedist and MSMs.
1.The Windows Universal Runtime is included in the VC Redist exe package as it has dependency on the Windows Universal Runtime (KB2999226).
Windows 10 is the only OS that ships the UCRT in-box. All prior OSes obtain the UCRT via Windows Update only. This applies to all Vista->8.1 and associated Server SKUs.
For Windows 7, 8, and 8.1 the Windows Universal Runtime must be installed via KB2999226. However it has a prerequisite update KB2919355 which contains updates that facilitate installing the KB2999226 package.
Why does KB2999226 not always install when the runtime is installed from the redistributable? What could prevent KB2999226 from installing as part of the runtime?
The UCRT MSU included in the VCRedist is installed by making a call into the Windows Update service and the KB can fail to install based upon Windows Update service activity/state:
1) If the machine has not updated to the required servicing baseline, the UCRT MSU will be viewed as being “Not Applicable”.
Ensure KB2919355 is installed. Also, there were known issues with KB2919355 so before this the following hotfix should be installed.
KB2939087
KB2975061
2) If the Windows Update service is installing other updates when the VCRedist installs, you can either see long delays or errors indicating the machine is busy.
a. This one can be resolved by waiting and trying again later (which may be why installing via Windows Update UI at a later time succeeds).
3) If the Windows Update service is in a non-ready state, you can see errors reflecting that.
a. We recently investigated a failure with an error code indicating the WUSA service was shutting down.
To identify if the prerequisite KB2919355 is installed there are 2 options:
Registry key:
64bit hive
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Package_for_KB2919355~31bf3856ad364e35~amd64~~6.3.1.14
CurrentState = 112
32bit hive
HKLM\SOFTWARE[WOW6432Node]Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Package_for_KB2919355~31bf3856ad364e35~x86~~6.3.1.14
CurrentState = 112
Or check the file version of:
C:\Windows\SysWOW64\wuaueng.dll
C:\Windows\System32\wuaueng.dll
7.9.9600.17031 or later
I was stuck with the same problem. I found this page with all the possible versions of the KB2999226 also know as Update for Universal C Runtime in Windows.
https://support.microsoft.com/en-au/kb/2999226
I download the x64 version and it work perfectly in my Windows 7 Ultimate.
Today i also face this type of problem during visual studio 2015 Community installation. As i have 64bit OS. I used https://www.microsoft.com/en-us/download/details.aspx?id=49093 link to update KB2999226 mannualy.
Try It. Good luck.
Same thing happened to me and I got it working doing this:
Do not cancel the installation (using the cancel button), instead force showdown your computer so the process is killed and you get a reboot.
After the reboot, just start the install process again.
This worked for me.
Just kill wusa.exe and install KB2999226 manually. Installation will continue without any problems.
I faced this problem after installing clean Windows 7 Ultimate 64 bit OS,
When I search about KB2999226 install fails during Visual Studio I also saw that I couldn't install any other updates.
By the way, I found a solution. When formatting some PCs with ( maybe ) partly corrupted bootable media, first Update for windows not completely installed.
As a solution;
1- Disable update for windows from Control Panel.
2- Restart your pc.
3- Install KB3102810 windows update. ( First update for Windows )
Microsoft TR links;
( 64 bit ) https://www.microsoft.com/tr-TR/download/details.aspx?id=49540
( 32 bit ) https://www.microsoft.com/tr-TR/download/details.aspx?id=49542
4- Restart your pc via finished setup.
5- Try getting updates, or manually setup KB2999226.
I could install this way.
Have a nice days.
I managed to solve the problem by the following steps :
1. Disable windows updates(but check the option "let users install updates manually")
2. Reboot the PC
3. Manually install kb2999226 update from VS install folder (packages/Patch/x64/Windows6.1-KB299926-x64.msu)
4. Start the VS install
5. After install is finished turn back automatic updates
I have the same problem today, stuck on the kb2999226 for over an hour. First, i thought it is because i am using a VM on my local machine. But decided to cancel the installation, then install kb2999226 first, then install the vs2015 community again, it works out much better, the installation move forward and progressing.
thx.
Another workaround is to turn off Internet connection, reboot and restart VS installation. Without Internet connectivity VS installer won't try to update Windows first and will continue without delay.

Microsoft visual studio 2013 installation failing

During installation I am getting an error Microsoft visual studio 2013 VsGraphic Helper Dependencies RC Incorrect Function
I was trying to install from ISO image and using web installer as well, getting same error in both cases. I am on Windows 7 x64 Dell XPS 16 with VS 2012 installed
Is there any workaround?
Original blog here.
Running offline installer from ISO is possible, see if below solutions work or not.
Mount the iso with any virtual cd software
Copy the mounted content to a local folder, e.g. C:\temp\vs2013\
Run “vs_ultimate.exe” from the local folder
-->
According to this article, there is a bug when downloading and using the ISO image. The web installer is preferred. This does of course make it harder to put it on a flash drive, which is unfortunate. Tee article is also about installing on a Windows 8.1 machine, while I'm using Windows 7 Professional. However, I expect that the issue is the same.
http://social.msdn.microsoft.com/Forums/en-US/fe3d5411-b601-425e-bf44-8cf5cd00f7af/visual-studio-2013-setup-failed-when-installing-on-windows-81-preview?forum=vssetup
Please bear in mind that the ISO installer leaves a lot of stuff behind when it fails - you need to uninstall it all and reboot before trying the web installer.
Visual Studio 2013 RTM is already available for download.
I didn't get any more issues during installation with this one.
I had the same issue.
Turns out that launching the setup with admin privileges worked for me.
I have the same error using:
Windows 8.1
ISO VS 2013 ultimate
I try copy contents in local, and I get the same error.
solution:
verify checksum of ISO. Get file again, copy to local.
Uninstall the failed version of 2013 from control panel -> Uninstall programs
Restart the computer
Clean %temp%
Mount ISO, execute as Administrator setup.exe
Re-run the setup again
References:
http://social.msdn.microsoft.com/Forums/en-US/fe3d5411-b601-425e-bf44-8cf5cd00f7af/visual-studio-2013-setup-failed-when-installing-on-windows-81-preview?forum=vssetup
I had the same issue, I'd downloaded the VS2013 Ultimate ISO from MSDN on Thursday when the announcement email went out but I had errors trying to install. I checked the SHA1 and it didn't match what is now on the site (Monday) so I downloaded the ISO again and it worked now.
I'm on Win7sp1 with vs2012 installed.
Just make sure you have updated your windows. (Restart windows after update)
If you have the ISO then mount it to virtual drive and then run the installer. (Don't extract and run)
Hope above instructions will help.
Note: Follow same process for VS 2015 installation.

Has anyone had success with Visual Studio 6 on Windows 7?

VS6 popped off a series of errors before bombing out completely during install on Windows 7. I specifically need to get VB6 functioning on Windows 7. Anyone having any luck?
Folks on the VB6 newsgroup report they have managed to get it working on Windows 7.
There's this step-by-step guide on how to install the IDE on Windows 7 (including 64 bit).
If that doesn't work (scrapes barrel) try this old tip about persuading the install not to install the Java VM? Link is now broken so here is the tip:
Before trying to install VB6. Create a new file, name it msjava.dll and place it in your windows directory. The file can be zero length. You can then happily install without the prompt to install an old version of Microsoft's flavour of Java. Once you have installed VB6, delete the msjava.dll otherwise windows update will prompt you to update it.
Or (scrapes hole in barrel) these tips from an article about getting the IDE working on Vista?
Footnote: if developing with ADO, be aware of this.
The only way I've found that works is Windows XP mode (i.e. a virtual machine). Works fine there, but otherwise, not at all.
I found ALL the answers in a thread at vbmonster.com. As mentioned above, you CAN install Visual Studio 6 with Service Pack 6 under Windows 7 by following Derek's detailed instructions at fortypoundhead.com.
I had a problem because I needed to install Service Pack 5. I use a third party program that does not work with Service Pack 6. A really smart programmer (GuideX) came up with a great hack to get around the MDAC 2.5 error.
Win 7 64 bit service pack 5 & 6. Turn compatability off and it seems to work.
Recently I had to debug an ancient application written in Visual C++ 6.0 on Windows 8.1. Tried different solutions all of them failed, only this one worked.
This guys made a special installer that allows installing VC++6, VB6, and SP6 on Windows Vista/7/8/8.1/10 without any errors whatsoever.
Hope it would be helpful to someone.
I installed VB6 on Windows 7 Pro without having to use compatibility settings or run as administrator.
Doesn't really help you, but does show that it can work.
Several people in my office have installed Visual Studio 6 (without VC++) on Windows 7, both 32-bit and 64-bit with no problems. The one thing we have in common: we've all turned UAC down to it's lowest setting. Nothing else special required.
I am using vb6 on windows 7 32 bit system for a long time.
you will need to install your vb6 with compatibility of xp2.
Create a 0-byte file in the C:\Windows directory called msjava.dll.
Don't just install via the Autorun executable; instead browse the Visual Studio 6 CD (or folder), right-click Setup.exe and select Run As Administrator.
On any Program Compatibility Assistant warnings, click Run Program.
Step through the setup screens until you're able to choose Custom Setup, then click next.
On the setup options, install the following items and nothing else:
Microsoft Visual Basic 6.0
ActiveX
Data Access
Graphics
Click continue and the process will start, and (hopefully) eventually complete.
Skip the installations of the MSDN CD, BackOffice, VSS and SNA Server, and clear the checkbox for "Register Now". Setup should be complete.
Download the VB6 Service Pack 6 from http://www.microsoft.com/downloads/en/confirmation.aspx?FamilyID=A8494EDB-2E89-4676-A16A-5C5477CB9713&displaylang=en and install.
Change the compatibility settings for Visual Basic (to get it to run a little more smoothly under Windows 7) by browsing to C:\Program Files\Microsoft Visual Studio\VB98, right-clicking the VB6.exe file, and selecting properties.
On the Compatibility tab, check the following:
Run this program in compatibility mode for Windows XP (Service Pack 3)
Disable Visual Themes
Disable Desktop Composition
Disable display scaling on high DPI settings
When you start up the IDE, you may get a notification saying that the color scheme has been changed to Windows 7 Basic, but it will be changed back to Aero once you exit. Everything should be working fine at this point!
Note: when you first run your new install vb6 run it with admin rights and with xp2 compatibility so that your exe can run on any system.
The word "supported" is used loosely in this thread, potentially leading the unwary reader to the conclusion that Microsoft supports the VB6 IDE (that is, the integrated development environment) on operating systems beyond Windows XP. This fact clearly is stated in the table that appears on the page at this link:
https://blogs.msdn.microsoft.com/nikosan/2012/04/20/support-statement-for-visual-basic-6-0-on-windows-8-updated/
Note that executables developed using VB6 are in fact compatible with Windows OS's from Windows XP through Windows 10--32/64-bit versions:
https://blogs.windows.com/buildingapps/2015/06/22/getting-ready-for-windows-10-sdks-compatibility-bridges/
Anyone using non-standard methods to coax the IDE into working on OS's that Microsoft does not support is exposing themselves/their organizations/their employers to risk and is not suitable for risk-averse organizations.
Having said that, I think the purest solution is to install Windows XP onto a virtual machine and run that VM in a modern host OS, such as Windows 10. That works just fine, and you can install directly from the VB6 Setup disc without making any pre-install/post-install customizations.
I had a Vista x64 box with a working copy of the VB6 IDE (which was supported). I upgraded the OS to Windows 7 x64 and the VB6 IDE still works fine. You could try that. I know, a huge PITA and kludgy but still, it worked for me.
I run Windows 7 Ultimate 32-bit, installed Windows Virtual PC - XP Mode, and that solved my problem isince I can run MSDEV 6.0 in the XP Window.
Not esay to install XP Mode though, the MS site is buggy.
The VB6 programming language is supported on the Windows 10 Technical Preview.
Visual Vasic 6 applications run and the VB6 IDE installs and works too.
I have the VB6 IDE running OK on Win-XP-16, Win-7-32, Win-7-64, Win-8.1-32, Win-8.1-64, win-10-32 and win-10-64 by using the instructions above which basically say, turn off UAC, run the installer AS ADMIN, and then set the VB6.exe file to run in XP-SP3 Compatibility mode.
I have had some issues with it and have had to do a bit more googling to solve these but I don't remember any more what those issues or solutions were.
I've even got the VB3 IDE running on the 32-bit versions of XP, Win-7, Win 8.1 and Win-10 - without even installing them - just copied the C:\VB folder from another computer and copied the *.LIC license files and *.VBX etc files as well.
I have successfully installed vb6 on win 7 32 bit by installing xp first then installing new win 7, (not upgrade), and do not format. then it will install vb6 without a problem
It's depending on your build version of Windows 7.
If your Win7's version is lower or is not updated, it has MANY PROBLEMS with compatibility.
But mine is newer Win7 version and has NO COMPATIBILITY TROUBLE.
I am currently using VB6 , VS6 and they still work fine!
If Properties->Compatibility->Windows XP doesn't help, fix it with UPDATING your Win7.

Setup Project for Windows Service won't build under Server 2008 (Visual Studio 2008)

We've got new machines here for doing development on running Server 2008.
With Visual Studio 2008 we're having problems building a Setup Project which installs the Windows Service - Under Custom Actions then Uninstall, "InstallerClass property is only valid for assemblies".
This builds and installs fine on XP SP3.
Has anybody else had any similar problems?
Workstation OS: Server 2008
Software: Visual Studio 2008
Make sure you add the service in the custom actions otherwise the service will not be registered. Other than that, are you having any compilation errors?
I recommend against using the VS install project. Use Wix instead, it's easier than you think.
I did find this - http://msdn.microsoft.com/en-us/library/447a3y7x(VS.71).aspx
Ive made the changes to the Solution and now waiting for it to be tested on a Server 2008 machine - Im still on XP SP3.
I was getting this error when running commandline devenv.exe to build a .vdproj file (in Nant scripts). The problem was I was not also building the dependant project first, so once that was done it worked fine.
It had nothing to do with the configuration of the InstallerClass property after all.

Resources