Wibs2

Hi,

I want to deploy my application created in VB2005 Express, but I want more functionality than that provided in the Publish Wizard.

I decided to look at 3rd party installers, and after looking at several, the one that seemed to stand out for me, with no scripting whatsoever, a 100% GUI driven wizard, and covering all my issues (where on the user drive the application would install to; extension association; icon association; uninstaller; splash screens; EULA; etc etc), and was FREE, was ClickTeam Install Creator.

I have set up a warning screen reminding the user that they must first have .NET version 2.0 or later installed on their PC, and a link where to get it.

Now I need to decide which files out of my project folders should be included in the installer.

My app consists of the main exe file, an icon file (*.ico), a help file (*.chm), and two dlls. Am I right in thinking that these then are the only five files to include in a 3rd party installer

I cannot find much information of the folder structure for VB2005E. For example, there are two folders in my project, OBJ and BIN, and within them there are two folders, DEBUG and RELEASE. I can find a copy of my main exe file in all four of these folders. Can someone point me to an explanation of the folders, their contents, and their use.

Do I need any of the files that have the following extensions (for the 3rd party installer)
*.application
*.deploy
*.manifest
*.pdb
*.xml

Advice would be much appreciated.

Wibs


Re: Visual Basic Express Edition Deploying using a 3rd party tool

js06

The one you are looking for is the bin\release

Build your project and then all your project files will be in this folder

You need all the files in the folder to include in your installer

The debug folder is your development testing folder

Release is just that - ready to release project

I believe the other folders are pre-compile folders (obj\debug - release)






Re: Visual Basic Express Edition Deploying using a 3rd party tool

spotty

You should need whats in the bin folder (either debug or release) depending upon which version you want to deploy.

You say you have a warning screen with a link to get the .net 2.0 framework. This is not an optional component but one which must be present for the application to work. So if its not there by all means present a message telling them but it should not allow the installation of your application to continue until it is present.

Your app wont work without it.





Re: Visual Basic Express Edition Deploying using a 3rd party tool

Wibs2

Thanks for the info guys. Unfortunately, it didn't work.

After the installer had done its work, I had a everything in the bin folder installed on my laptop.

On running the app I got the: SimScape has experienced a problem and Needs to Close, error message.

My laptop has .NET Ver 2.0 installed. So I am at a bit of a loss as to why it didn't work.

I then tried the VB2005E Publish wizard. I then moved the Publish folder it created onto a memory stick, and took that to my laptop. After clicking on the Setup.exe file I got a different error message:

Unable to install or run the application. The application requires that assembly stdole Version 7.0.3300.0 be installed in the Global Assembly Cache (GAC) first.

I then opened up my project in VB2005E, checked the References, and I can see that file there (but I did not add it, honest).

What is this file What do I do next

Wibs




Re: Visual Basic Express Edition Deploying using a 3rd party tool

js06

I have seen this before when installing on a laptop

It is your app, to fix it you need to do the following:

Create a new project

then import the files from your current project into the new one (project menu - add existing items)






Re: Visual Basic Express Edition Deploying using a 3rd party tool

Wibs2

Thanks for the advice js.

I did as you suggested. The stdole.dll reference and a couple of other references were no longer in the list of references in the new project after the files had been brought in.

The app ran normally. I then Published, and took the resulting \Publish folder (on a memory stick) to both my son's laptop, and my wife's Desktop.

Both just give the same error when trying to install,

SimScape has caused an error and needs to close....

Frustration is starting to creep back in...

Any troubleshooting tips

Wibs






Re: Visual Basic Express Edition Deploying using a 3rd party tool

Wibs2

Quick follow up.

I created a very simple "Hello world" app, 1 form, 1 button, 1 label.

When I Publish this 'app' I get the \Publish folder, and copying this to the memory stick, and clicking on setup.exe at both my son's laptop and my wife's desktop launches the app no problem. However, it does not install the app (hi.exe), anywhere!

Is this normal behaviour

It is nearly midnight here now, so I am off to bed with a cocoa and book 12 of 'A Series of Unfortunate Events', (thinks: a rather apt title, ;-)

My main app has two 3rd party dlls in it. One is MacTrackbar, and the other is the freebie SkinCrafter that I got when I signed up for VB2005E. I have tried leaving out the MacTrackbar, and replacing it with the standard TrackBar, then publishing the app, but it still wont load on another machine. Tomorrow, I will try some more tests:

a) Trying without Skincrafter
b) Trying the simple hi.exe with the 3rd-party installer

Shall let you all know the results tomorrow. But, if you have any ideas in the meantime....

Wibs




Re: Visual Basic Express Edition Deploying using a 3rd party tool

Wibs2

Ok, one last thought before I REALLY go to bed.

If I wish to dispense with Publishing my app (using the word Publish here with relation to the ClickOnce facility), and simply send the required files to testers, on CD, am I right in thinking that if I simply copy the files in the \Obj\Release folder, those are the ONLY files that they will require, providing that they have .NET version 2.0 installed

Wibs




Re: Visual Basic Express Edition Deploying using a 3rd party tool

Tall Dude

My little installer toy program is not

a cure all, but it may help some people.

Make a quick 'hello world' app and test the

hello world app, then your app.

See:

http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1371143&SiteID=1






Re: Visual Basic Express Edition Deploying using a 3rd party tool

js06

This is where click once deploys your app to

C:\Documents and Settings\your user name\Local Settings\Apps\2.0\Q6WYK18P.L3H\H3NRC1B9.HK0

the advice i gave you earlier, i have only seen the GAC error before. I guess the new project took care of that.

I don't know about the simscape. Does this have anything to do with skincrafter

SimScape is for modeling isn't it Maybe try your project without skincrafter. I'm guessing there is no support for that version.

Or maybe just use a third party installer. check out tall dude's or you can use inno setup or click team install creator. these are free from their websites.

Yes, all you need is to give a copy of the files in the debug or release folder for testing. Copy the files from either of those folders from the bin folder not the obj folder.






Re: Visual Basic Express Edition Deploying using a 3rd party tool

Wibs2

Hi js,

The folder you quote after the \2.0\ does not exist on my machine. However, I did find the files at the following path:

\LocalSettings\Apps\2.0\8H9Q0AKA.K7C\151KX2O6.QND\hi.a..tion_7cf7751d2f9a9b7f_0001.0000_3fd7bbb066053507

The new project got rid of the GAC error message, but then I got a different one. SimScape is the name of my application, and the exe is simscape.exe.

I will try some more scenarios today, and get back with the results.

Wibs