C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » Smart Devices »

Silent installation of cab file


Posted Date: 01 Aug 2009      Posted By: Ansar      Member Level: Bronze     Points: 1   Responses: 5



Hello All,

I have a cab file which i want to install in a PDA in silent mode (without any user interaction).

While installing my cab file after cold boot, It prompts the message "Application already installed, do you want to reinstall?"
I dont want this message to appear.

Is there any way to accomplish this task?

Thanks in advance









Responses

Author: Deepika Haridas    01 Aug 2009Member Level: DiamondRating: 2 out of 52 out of 5     Points: 2

Hi,

With silent cab installer for WM5 and WM6 you can install it totally silent. Download it from.

http://cssoft.freehosting.net/website2/default.html



Thanks & Regards,
Deepika
Editor

If U want to shine like a SUN..First U have to burn like the SUN!!
Need a Guide? Join my mentor program..



Author: Ansar    02 Aug 2009Member Level: BronzeRating: 2 out of 52 out of 5     Points: 2

Thanks for your response.

Is there is way to do it without using third party application?



Author: Malleswar    03 Aug 2009Member Level: GoldRating: 2 out of 52 out of 5     Points: 2

Hi Ansar,

Check this links as well.

http://social.msdn.microsoft.com/Forums/en-US/netfxcompact/thread/6238a232-1e87-4067-8720-6cbc548dcd2d/


http://social.msdn.microsoft.com/Forums/en-US/netfxcompact/thread/968ea4ed-477d-4352-bffd-bab302732ea9/


Regards,
Malleswar



Author: Pavan Pareta    07 Aug 2009Member Level: SilverRating: 2 out of 52 out of 5     Points: 2

Hi,

Whatever CAB file you want to install in your device first you have to check in you device, is it installed or not if not installed then you have to call silent installation code.

See below code snippet:
private void SilentCabInstall()
{
try
{
string ceLoadPath = @"\Windows\Wceload.exe";
string cabFile = @"\Storage Card\TestApp.CAB";
string parmeter = @"/delete 0 """ + cabFile + @""" /silent";

ProcessStartInfo psi = new ProcessStartInfo(ceLoadPath, parmeter);
Process SilentProcess = new Process();

SilentProcess.StartInfo = psi;
SilentProcess.Start();
SilentProcess.WaitForExit();
if (SilentProcess.ExitCode != 0)
{
MessageBox.Show("Installation failure !");
}
}
catch (Exception x)
{
MessageBox.Show(x.Message);
}
}



Author: Ansar    08 Aug 2009Member Level: BronzeRating: 2 out of 52 out of 5     Points: 2

Hello,

Actually, the previous post by Malleswar helps me to find out a solution for this issue. As it is mentioned in the below link.
http://social.msdn.microsoft.com/Forums/en-US/netfxcompact/thread/968ea4ed-477d-4352-bffd-bab302732ea9
We have to delete the sub key in registry (HKEY_Local_Machine\Software\Apps\<Your Application name>).

On application startup after installation, I’m setting the value of Registry key (HKEY_Local_Machine\Software\Apps\<Your Application name>\Instl) to 0.

Above changes to the Registry key, avoids messages like "Application already installed" in the next installation.

I dont know whether it is the correct way to accomplish this task or not. But it fulfilled my requirement.

Regards,



Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.


Next : Mobile application
Previous : Monitor gprs using c#
Return to Discussion Forum
Post New Message
Category: Smart Devices

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use