Microsoft's application installer launches my ClickOnce application - windows

This is the weirdest thing I've ever seen. I wrote this application, which is deployed through ClickOnce. After installing my application, I tried to install this other tool, and instead of installing anything, my application launched. Then I uninstalled my application, cleared ClickOnce's cache by running rundll32 dfshim CleanOnlineAppCache in CMD, and tried to install Microsoft's tool again, and my application's ClickOnce installer showed up.
Any idea what in the world could cause this?

Looks like you are using the same GUID for the installer what microsoft used for their tool. Please generate another GUID for your app and try again.
Also try your installer from a different PC or Virtual Machine. It could be your computer's issue as well.

My first thought is that they use the same GUID. Can you regenerate any keys of your application and try again?
Really strange.

Related

Why does the ClickOnce Deployment installer run the application during installation?

Why does the ClickOnce Deployment installer run the application during installation?
Details:
For an XNA 4.0 application I am prototyping it runs once. If you have Avast! installed and with its Deep Screen feature enabled, it will run twice (Avast! kills it and re-runs it).
Note:
This is similar to, but not the same as, Install ClickOnce without running. Please see that question for a solution to make it stop running the application. The answer is right here, you must use MageUI.exe. Here, I am only interested in understanding why it runs the application. What am I misunderstanding?

windows service msi installer created in vs2003 hangs in win7 while installing

We have few windows services developed using .Net framework 1.1(VS2003).For each windows service an msi installer(set up project) is created to make installation easier.These installers are able to install windows services successfully in windows XP.But these installers unable to install windows service in WIN7 though I have admin privileges on the machine in which I am trying install them.While I am trying to install the windows service in win7, Through msi installer,installation is progressing till 90%.After that it is neither completing nor throwing an error.I am unable to understand what the problem is.
I tried following ways.
1.Opened cmd window in admin mode and tried to execute the msi with the command msiexec -i --Din't work
2.Right clicked on the actual exe(windows service exe) file and tried to run it in admin mode.--Din't work
3.Changed the UAC to never notify, restarted the machine and then tried to install--Din't work
4.Right clicked on both exe and msi and open their properties and changed the compatibility to lower version of windows and tried to install--Din't work
One thing I have noticed is that for all the custom actions of our windows service installer, primary output of our main project(exe) was given as input.I build the msi installer by removing all the custom actions.Then i tried to install it in win7.Then it was installed.But during the installation system not prompted for account details (which is the actual case while installing windows service) and also the service was not appeared in services manager window.
I spent somuch time to identify the cause and resolution.But I dint find any posts on this issue.I suspect that the problem is with custom actions.But not sure.If the problem is with custom actions please let me know how to overcome it.
Please provide a resolution for this issue or share me if there are any links which talks about this.
FWIW, .NET 1.1 isn't supported on Win7. Also I'm guessing you are using InstallUtil custom actions to drive the setup of your .NET Windows Service. These are very fragile and you can eliminate all those brittle points by refactoring and using the ServiceInstall ServiceControl tables in MSI.

VB6 Application Silently Crashes on Startup/Form Loading

I have a VB6 app that loads initially (for a small prompt to enter a license key, only on the first time). It works fine on my machine (windows 7).
I had complaints of it crashing on someone else's machine (both xp and 7), so I made a Windows XP virtual machine. I installed it on the virtual machine, it crashed. I wanted to see where it crashed so I installed Visual Studio on the virtual machine so that I would get a debug prompt. When I ran the program again, it worked.
I am more familiar with C++ and had these kinds of problems, so I figured it was some sort of runtime issue.
I found this VB6 SP6 Redistributable Runtime:
http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=24417
I installed that, and it still wouldn't run.
Any ideas where to go from here?
Edit:
I have tried depends.exe, it only shows MSJava, which I've heard I can ignore. Does depends.exe also show things like .ocx (Active X controllers?) that are required?
Also, from the cmd prompt, %errorlevel% doesn't seem to get populated. Is that a VB6 things, or does that indicate that this is truely a crash and not a user exit?
Open the Visual Basic project and check both "References" and "Components" under the "Project" menu.
Since it is crashing with the VB runtime installed it is likely a component that you have referenced in the project that either does not exist (or is not registered) on the client under test.
This should be a simple fix.
I had the same problem on my windows 7 computer.
I have uninstalled everything, changed my windows theme to Windows Classic.
I changed following properties of VB setup file.
Right click on setup.exe and go to properties and in compatibility tab change the compatibility mode to windows XP SP2. And in settings uncheck the following check boxes.
Disable Visual themes
Disable Desktop composition
Disable display scaling on high DPI settings.
Run this program as an administrator
And have completed installation.
Followed by installing VB 6 service pack 6 from here.
http://www.microsoft.com/en-us/download/details.aspx?displaylang=en&id=24417
Hope it helps.
It may require something else other than just the runtime, have you tried viewing it with dependency walker http://www.dependencywalker.com/ on the machine that it crashes on?
It should quickly point out any missing references.
Maybe try again, create a new VM, but install the remote debugger instead of the full VS.
You should create an installer for your application. There may be more dependencies than just the VB6 runtime. A good installation tool will detect at least some of necessary dependencies for you. Have a look at this question or this question

VSTO solution using ClickOnce via IIS 6 fails to download manifest

I have an Office solution for Word 2007 that I publish using ClickOnce. When I publish it to a local directory, I can install the .vsto file and everything works. When I publish it to our web server, though, I cannot install it. The error I get is:
Downloading file:///C:/DOCUME~1/Dave/LOCALS~1/Temp/Application Files/MyApp_1_0_0_0/MyApp.dll.manifest did not succeed.
I have been Googling for most of the day, and have already tried the following:
Added the correct MIME types to IIS 6 config (as described here and here on MSDN).
Created a test certificate, imported it into my trusted root authorities, and signed the app with it.
Published the solution to a network share and tried installing from there. It worked fine.
Tried accessing the MyApp.dll.manifest file directly from the web URL. The browser is able to find the file just fine.
What am I missing? Thanks.
Make sure that Windows Installer 3.1 is installed on the end-users PC. If it's not, you may want to add it as a prerequisite to your application.
Also, you may want to check and see if the application is installed from the Windows Add/Remove Programs screen. If it is in the list, you may need to uninstall the application, first. I know, you're probably thinking 'But the application hasn't been installed yet.'
Quite a few application that are published via ClickOnce. ClickOnce works great most of the time, but every now and then I see users who run into hiccups similar to yours when they try to initially install the application. The best solution is to usually uninstall all prerequisites, reboot, manually re-install the prerequisites (not from the ClickOnce setup.exe file) and then launch the application.
Some of those steps may not be necessary but it tends to fix the problem nearly every single time.

Can't install ASP.NET MVC3 RTM?

I'm trying to upgrade from ASP.NET MVC3 RC to RTM? I can't get past upgrading the vs10-kb2483190-x86.exe installer. I get this error in the error log:
Do I need to uninstall the Windows Phone SDK first? Should I hunt for GUIDs in the registry?
The installer appears to launch devenv.exe behind the scenes. I decided to launch VS2010 to see if it would "unlock" something. After it launched, I closed it and the installer started progressing.
Actually, it did work - I just ran for the second time...
When you run .msp, it pops a prompt that "the network resource for Visual Studio installation files is not available". Once you update the location of vs_setup.msi everything else works fine. I didn't have to run MSIs in sequence as the post suggests - once location was correct, I just ran MVC3 installation executable, and everything got installed fine.
It looks like platform installer and MVC3 setup just fail and, worse, swallow the root cause problem.
I finally gave up and reinstalled windows when I got a new CPU/Motherboard. Took care of it, not that I suggest this solution for everyone.

Resources