Project Help (Visual Basic and Inno Setup) (1 Viewer)

Joined
Sep 14, 2004
Messages
492
Location
Sydney, Australia, Earth, Milky Way...............
Gender
Female
HSC
2006
Hiya, guys...OK last time I beg for help with my project...


Basically I've written HTML-style help and put it on my website, and I've put this code into a button on my form:

Private Sub cmdHelp_Click()
Shell "C:/Program Files/Internet Explorer/IEXPLORE.EXE http://inspiro.fh-net.com/help/index_help.html", vbNormalNoFocus
End Sub

This works mighty fine, and I threw in a hard copy of the manual for people not connected to the net. Except for the fact that my teacher's like, "why don't you put html help for the people who don't have an internet connection?"...and here we have a problem. Several, in fact.

1. I've been using this installation program to throw all the bits and pieces together into Program Files and add on start menu shortcuts and whatnot. Mind you, I'm not smart enough to work Inno Setup from scratch, so I've been using a wizard to help me out. Only problem is, the program installs happily, and runs once, but if you get into it a second time it starts to whinge about files not being found, despite them being in the respective folders.

2. OK, so we know the directory into which people install the program may change, but how should I allow for this in the VB code when I try to launch help files? So far, I can load it from a directory like C:\Program Files\LCT\help\index.html if I specify it, but keeping in mind that a user can change this, what can I do?

And I'll email anyone the project files if they want them.

Thankyou in advance :) Hopefully this will be the last time I shall be forced to entreat you who are so knowledgeable in the IT field.
 

sunny

meh.
Joined
Jul 7, 2002
Messages
5,350
Gender
Male
HSC
2002
stella8h8chang said:
1. I've been using this installation program to throw all the bits and pieces together into Program Files and add on start menu shortcuts and whatnot. Mind you, I'm not smart enough to work Inno Setup from scratch, so I've been using a wizard to help me out. Only problem is, the program installs happily, and runs once, but if you get into it a second time it starts to whinge about files not being found, despite them being in the respective folders.
Will have to see your InnoSetup project to know...

stella8h8chang said:
2. OK, so we know the directory into which people install the program may change, but how should I allow for this in the VB code when I try to launch help files? So far, I can load it from a directory like C:\Program Files\LCT\help\index.html if I specify it, but keeping in mind that a user can change this, what can I do?
App.path returns the working directory of where the executable is running for you as a string.
 

sunny

meh.
Joined
Jul 7, 2002
Messages
5,350
Gender
Male
HSC
2002
Which files is your program whinging about when you run it the second time?

The only immediate problem I can see is with:
Code:
Source: "D:\My PLC 2005 Folder\SDD\Major Work\Major_Work\help\*"; DestDir: "{app}"; Flags: ignoreversion
I'm assuming your program is expecting the help files to be in a folder called help that is in the same directory as the program - but you copy the help files into {app}, which is where the program is (rather than being copied to their own folder)
 
Joined
Sep 14, 2004
Messages
492
Location
Sydney, Australia, Earth, Milky Way...............
Gender
Female
HSC
2006
sunny said:
Which files is your program whinging about when you run it the second time?

The only immediate problem I can see is with:
Code:
Source: "D:\My PLC 2005 Folder\SDD\Major Work\Major_Work\help\*"; DestDir: "{app}"; Flags: ignoreversion
I'm assuming your program is expecting the help files to be in a folder called help that is in the same directory as the program - but you copy the help files into {app}, which is where the program is (rather than being copied to their own folder)
OK. I fixed the help file thing.

The file the program doesn't like is "col_1.jpg", and it still doesn't work :( but thankyou very much for the help with the help files.
 

sunny

meh.
Joined
Jul 7, 2002
Messages
5,350
Gender
Male
HSC
2002
How are you accessing col_1.jpg (or any of the other jpg files) in your program?

There doesn't seem to be anything wrong with the script, so its probably the way the program has been written.
 

sunny

meh.
Joined
Jul 7, 2002
Messages
5,350
Gender
Male
HSC
2002
Do you mind if I see the project and the compiled InnoSetup package?
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Top