Hi,
I use ClickOnce to publish and install an application in the company. I
have a help file for the same in .chm format. It is part of the C#
project as a 'content' file. I also tried as 'embedded resource'. It
opens when the help link is clicked. The code looks like:
string exeFileName = Application.ExecutablePath;
string exeFileNameStub =
exeFileName.ToUpper().Replace(@"\Path", @"\");
exeFileNameStub =
exeFileNameStub.Remove(exeFileNameStub.LastIndexOf ('\\'));
exeFileNameStub =
exeFileNameStub.Remove(exeFileNameStub.LastIndexOf ('\\'));
exeFileNameStub =
exeFileNameStub.Remove(exeFileNameStub.LastIndexOf ('\\')+1);
string helpFileNameAsPublished = exeFileNameStub +
@"Help-TCM.chm.txt";
string helpFileName = exeFileNameStub + @"Help-TCM.chm";
FileInfo helpFileAsPublished = new
FileInfo(helpFileNameAsPublished);
FileInfo helpFile = new System.IO.FileInfo(helpFileName);
if (!helpFile.Exists)
{
if (!helpFileAsPublished.Exists)
{
MessageBox.Show("Help request cannot be actioned
because help file is missing - contact support!", "Help file is
missing");
return;
}
helpFileAsPublished.MoveTo(helpFileName);
Help.ShowHelp(c, helpFileName);
}
Help.ShowHelp(c, helpFileName);
It works fine locally. However when someone installs it from the
publishing link, I get the error "Help request cannot be actioned
because help file is missing - contact support!"
How can I make sure the .chm file is availabel when someone installs my
app?
Thanks,
Avanti 2 1967
another one...
--
Regards,
Alvin Bruney
------------------------------------------------------
Shameless author plug
Excel Services for .NET is coming...
OWC Black book on Amazon and www.lulu.com/owc
"avanti" <av****@gmail.comwrote in message
news:11**********************@s34g2000cwa.googlegr oups.com...
Hi,
I use ClickOnce to publish and install an application in the company. I
have a help file for the same in .chm format. It is part of the C#
project as a 'content' file. I also tried as 'embedded resource'. It
opens when the help link is clicked. The code looks like:
string exeFileName = Application.ExecutablePath;
string exeFileNameStub =
exeFileName.ToUpper().Replace(@"\Path", @"\");
exeFileNameStub =
exeFileNameStub.Remove(exeFileNameStub.LastIndexOf ('\\'));
exeFileNameStub =
exeFileNameStub.Remove(exeFileNameStub.LastIndexOf ('\\'));
exeFileNameStub =
exeFileNameStub.Remove(exeFileNameStub.LastIndexOf ('\\')+1);
string helpFileNameAsPublished = exeFileNameStub +
@"Help-TCM.chm.txt";
string helpFileName = exeFileNameStub + @"Help-TCM.chm";
FileInfo helpFileAsPublished = new
FileInfo(helpFileNameAsPublished);
FileInfo helpFile = new System.IO.FileInfo(helpFileName);
if (!helpFile.Exists)
{
if (!helpFileAsPublished.Exists)
{
MessageBox.Show("Help request cannot be actioned
because help file is missing - contact support!", "Help file is
missing");
return;
}
helpFileAsPublished.MoveTo(helpFileName);
Help.ShowHelp(c, helpFileName);
}
Help.ShowHelp(c, helpFileName);
It works fine locally. However when someone installs it from the
publishing link, I get the error "Help request cannot be actioned
because help file is missing - contact support!"
How can I make sure the .chm file is availabel when someone installs my
app?
Thanks,
Avanti
Thats true. I saw this post at various places. I have already tried the
solutions given there. They did not work. I tried doing it through the
txt file. I also made it an existing file - content type - didn't work.
Do you know another solution?
Thanks,
Avanti
Alvin Bruney [MVP] wrote:
another one...
--
Regards,
Alvin Bruney
------------------------------------------------------
Shameless author plug
Excel Services for .NET is coming...
OWC Black book on Amazon and www.lulu.com/owc
"avanti" <av****@gmail.comwrote in message
news:11**********************@s34g2000cwa.googlegr oups.com...
Hi,
I use ClickOnce to publish and install an application in the company. I
have a help file for the same in .chm format. It is part of the C#
project as a 'content' file. I also tried as 'embedded resource'. It
opens when the help link is clicked. The code looks like:
string exeFileName = Application.ExecutablePath;
string exeFileNameStub =
exeFileName.ToUpper().Replace(@"\Path", @"\");
exeFileNameStub =
exeFileNameStub.Remove(exeFileNameStub.LastIndexOf ('\\'));
exeFileNameStub =
exeFileNameStub.Remove(exeFileNameStub.LastIndexOf ('\\'));
exeFileNameStub =
exeFileNameStub.Remove(exeFileNameStub.LastIndexOf ('\\')+1);
string helpFileNameAsPublished = exeFileNameStub +
@"Help-TCM.chm.txt";
string helpFileName = exeFileNameStub + @"Help-TCM.chm";
FileInfo helpFileAsPublished = new
FileInfo(helpFileNameAsPublished);
FileInfo helpFile = new System.IO.FileInfo(helpFileName);
if (!helpFile.Exists)
{
if (!helpFileAsPublished.Exists)
{
MessageBox.Show("Help request cannot be actioned
because help file is missing - contact support!", "Help file is
missing");
return;
}
helpFileAsPublished.MoveTo(helpFileName);
Help.ShowHelp(c, helpFileName);
}
Help.ShowHelp(c, helpFileName);
It works fine locally. However when someone installs it from the
publishing link, I get the error "Help request cannot be actioned
because help file is missing - contact support!"
How can I make sure the .chm file is availabel when someone installs my
app?
Thanks,
Avanti
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Asaf |
last post by:
Hi,
After publishing my test application using ClickOnce with VS.NET 2005 I am
getting these warnings:
Warning: Could not download 'ClickOnce.application' from…
Warning: Could not download...
|
by: moondaddy |
last post by:
I have a .net 2.0 smarclient app and am trying to deploy it to IIS where
users can access it from. I created an application folder in IIS where I'm
trying to deployee to.
1) When the...
|
by: moondaddy |
last post by:
I have a sample vb .net 2.0 winforms app and am using Oneclick deployment to
a remote server. All of the files (DLLs, EXEs, manifests, configs, etc.)
seem to get deployed to the target folder on...
|
by: Bill Nguyen |
last post by:
I ran into this error trying to run an app from Publish.htm.
I can't find what is wrong with the deployment.
Thanks a million
Bill
--------
PLATFORM VERSION INFO
|
by: Alex Bögli |
last post by:
Hi
I have a rather advanced deployment scenario and wanted to know, if anyone
has an idea how to accomplish that with ClickOnce:
We are deploying a 3-tier application with a client connecting...
| |
by: Marc Gravell |
last post by:
Repost from dotnet.general (no response), and OT but I hoped somebody
might have a clue...
I have a handful of ClickOnce installs that work fine almost
everywhere... however, on some machines...
|
by: Carlos Mendonça |
last post by:
Has anyone managed to get ClickOnce to work with Firefox? It seems to me
that it still has the same issues VS 2K5 had.
I appreciate any comments or tips.
|
by: andrewschools |
last post by:
Hi,
I'm using ClickOnce for all of my installations and updates. However, when I modify any of the datasets in my application, when a user downloads the new update, all their data saved in their...
|
by: =?Utf-8?B?VCFN?= |
last post by:
Hi All,
I've been successfully deploying clickOnce successfully through the 2.0 and
3.X frameworks, but now have a problem with ClickOnce updates in 3.5 SP1.
The scenario is this: I want to...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
| |
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |