I need to install drivers to my clients silently.
Now, I have some issues:
I don't want to install them directly from the internet using Process.Start("www.......msi") beacuse it goes really slow. I want first to download them to the computer and then run a winform application to let the client choose which driver to install.
I tried the VS Installation but I couldn't figure out how to download all the "c:\Program Files" and NOT to the "Program files (x86)" in case of a windows with 64 bits.
And I couldn't figure how to launch the winform app after the download complete, using the "custum action" didn't work.
I have different drivers for x86 and for x64, and I need to download to client's computer the drivers that he needs, how can I do that?
I have both msi and exe drivers, how can I install the exe driver silently?
If you know some third-party application I would be greatfull, this could be the best option for me!
Found the answer in Visual Studio 2012 with the InstallShield and some programming work in my code.
Thank you all :)
Related
System Update Required:
Cannot open database connection :
Wrong username and password :
Greetings everyone
I have the following issue with restaurant management system that is programmed in C# connected with Microsoft Access database (2019), the program is work correctly in main developer laptop while we transfer the files to target or other PC or Laptop the program show the above images as windows messages error hopefully anyone have solved the issue before or have suggestion to solve it. let know about it with appreciation and advanced in thanks.
note* even I look for the problem I try to install new framework or Microsoft Access Database Engine 2016 it doesn't work.
Download the required version of log4net dll to the system. And then open Visual studio command prompt. Then run the below command in it.
gacutil -i log4net.dll
You need to install the dll in the GAC.
If by any change there is no gacutil or Visual Studio installed then you can use powershell to install the dll into GAC. You can refer this link for that https://weblogs.asp.net/adweigert/powershell-install-gac-gacutil-for-powershell
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.
I need to write a program where i can select an apk files which will be installed in the connected devices(via USB) I can see many threads referring on how to install exe and msi but no useful links for installing apk from C#. Can anyone provide a clue to solve this?
With usb debugging enabled in the android device and android sdk and proper drivers on the computer you could use the adb command-line tool (sdk-path/platform-tools/adb.exe):
adb install pathToYourApk.apk
There are multiple answers regarding how to run a command-line tool with c#, for example:
How to parse command line output from c#?
I am developing a hmi for a usb device in visual studio 2012 and I want to include usb device drivers in my program installation. I do have .cat and .inf file of the usb device but how should I include them in my hmi installation so that user doesn't have to prompt windows to search for the folders.
thanks in advance for helping me out,
Veeru
I don't know what kind of installation technology you are using; Visual Studio provides both "ClickOnce" and "Setup Projects".
With ClickOnce, I don't think it is possible to install drivers.
With a Setup Project, you will have to make a custom action that calls SetupOEMCopyInf. To make that custom action, you have to compile a Win32 DLL using C or C++.
I have developed a C# winform application in Visual Studio 2010 that connects to a Access 2010 *.accdb database. It works fine on my pc but when I install it on another, It throws the error "The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine."
I tried to compile it to x86, as advised, without any succes.
Any help/advice is appreciated, I think that I should include this driver as part of my clickOnce install. If so, how do I do so? (It does not appear as an option in the checklist of requirements, in VS Properties > Publish > Previous requirements)
You will have to use a more advanced method of deploying the necessary driver - ClickOnce won't do it by itself as far as I know. I also don't think it's as simple as a single DLL. The driver needs to register with the system etc.
There is a big issue with the Access drivers because of the way they are set up. If the user has Microsoft Office with Access installed, they will already have the ACE driver. The problem is, if they have 32 bit Access installed on a 64 bit machine, your 64 bit application will not be able to talk to Access because the machine only has a 32 bit driver, and you cannot install both.
If none of your users have Microsoft Office with Access, then you should be able to deploy the standalone driver installer for 32/64 bit as necessary with each computer.
It is possible to include arbitrary assemblies and files as part of your ClickOnce install by adding them to the project and changing their file type to Content. They will then appear in the list of Application Files.
Note that you'll get a warning from Visual Studio if you do this, but it can be safely ignored.
You can build an msi instead of oneclick and create a custom action that would install ace driver in quiet mode. Since its an executable you can just run it in a process object