Silent Installation of MSI file while Main MSI file Installing - c#

I created a windows forms project, and created a MSI file to install that windows application into client machine.
While Installing that MSI file, I check If the user using windows xp then I download a MSI file from internet and installing it in programatically using C#.
Since both files are MSI, so I am getting the following error.
Image link for the Error
http://i.stack.imgur.com/9A6WW.png
I am using Installer class in C#. Installing that file by overriding the Commit function.
How can I successfully Install that ?

Put the second installation in the prerequisites of the first. If second is unavailable then first it will install that after that your main program.

Related

How to silently install MySql server in Installsheild?

i want to install Mysql server in client mechine during installation of my Actual Application using IntallShield Limited Edition i have already tried an approach that just place the MySQL.msi in an exe and run the exe in installshield during installation of my Application but it throws an error that is "Another installation is in Progress.You must complete that installation before continuing this one".I think this error comes bcz Windows Installer is busy to install my Actual application and it doesn't Install more than one App simultaneously. So how can i install MySQL parallel to my App?Thanks
i want to install Mysql server in client mechine during installation of my Actual Application using IntallShield Limited Edition i have already tried an approach that just place the MySQL.msi in an exe and run the exe in installshield during installation of my Application but it throws an error that is "Another installation is in Progress.
I would suggest you to create installshield prerequisite for Mysql server, and include this prerequisite in your application, so that the prerequisite will be installed before your application.

SCCM2012 .MSI Installation

i have a problem with during application installation to client. My application is Microsoft office add-in. And then i try to deploy this application to the client i don't see this files on client side but software centre says that application was successfully installed.
Why it happen? I try to install another applications for example 7Zip.MSI, my own application .msi and anothers, all ok, but if i try to install Microsoft office add-in the files are somewhere disappeared. for script execute i used this command:
msiexec /i "WToysSetup.msi" /qb
i have already installed microsoft word on clients machine.
There are a number of possible issues here. I'm assuming you're using a Visual Studio setup project in the absence of a specific tool being mentioned.
The install requires elevation, but in a silent install Windows won't show the UAC elevation dialog, and it will run without elevation. Most installs like this would fail, but you might find that a Visual Studio generated MSI reverted to a Just me install, and installed the files to an unexpected location (often C:\ and not Program Files).
MSIs can be published or assigned with SCCM-type deployments, one is to the system the other to the user, and that's Everyone or Just me again, so it may have done a per user install because of that.
Regardless of whether it seems to have worked, if it requires elevation and fails then it may just fail silently, which would be one reason you can't find the files. You should be able to see in Programs&Features/Apps whether it is actually installed, but it was installed as a per user/Just me install you'd need to log on as that user to see it in the list of installed apps.

Can an AppX installer for an application remove an older installation of the application installed using an MSI?

I have installed my Hello World application using an MSI that I created for it. I've since converted the MSI installer to an AppX installer. Is it possible for the AppX installer to detect an existing installation of my Hello World application installed by the MSI installer and remove it, much as a standard MSI upgrade installation would?
I try to sideload one app in local machine twice, and I find when you sideload this app for the second time, the Appx installer can detect an existing app and remove the previous installation.
But it may not remind you that this app has been installed, and it doesn't also ask you that you wan to remove this app to reinstall or not, it just removes this app and reinstall app.
Update:I think it is impossible for the Appx installer to detect an existing installation of your application installed by the MSI installer and remove it. I install appx and there is no any detection information , and it will not remove the application installed by MSI installer

Change Application Folder Path of Windows CE Setup Project

I've created an application for Windows CE and I'm trying to create a setup project. I'm doing a silent update operation and need to install the .CAB files to a specific folder (\Program Files\abc\xx)
By default, it installs to \Program Files\Product Name
How can I make it to install on \Program Files\abc\xx ?
This was possible for windows installers but I guess not possible for Windows CE installers.
Thank you
You have to modify the INF file that CABWiz is using (specifically the InstallDir in the CEStrings section).
If you're using the Studio project that wraps this INF file, then you can't adjust it (one of the many shortcomings of the device CAB installer projects).

Error while installing a .net setup executable locally

I have created a setup for my windows application in .NET 2008
After building the same i have the .msi and setup.exe files in my release folder.
The problem i am facing is :
I can install the application using the msi installer files from the shared network folder. But when i copy the installer locally and tried to install it,
i get the following error: Error reading file.Please Try again.
Anybody having any ideas if there are any properties to set in the installer project.
Regards
Constant Learner
Just a thought, you can use Orca to go through the .msi and see if you're having any static references to your development machine within your msi.
The application is a simple windows application without any database associated with it.
Its just a hello world windows application. So i presume its something related to the configuration part of the installation...
Constant Learner

Categories

Resources