Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Creating Visual Studio 2005 Setup Project for ASP.NET 2.0 Application and UltiDev Cassini Web Server
thecobe
#1 Posted : Tuesday, April 22, 2008 12:09:58 AM(UTC)
Groups: Member
Joined: 4/21/2008(UTC)
Posts: 4
Location: Milan

Hi all
i have created my setup project as you can read in this article
http://www.ultidev.com/p...RedistirbWithVS2005.htm

It's all right even if sometimes when i run the site it asks me installation file and tries to re-install the application

anyone know why?

thanks
Marco
Ultidev Team
#2 Posted : Tuesday, April 22, 2008 4:26:42 AM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Marco,

We saw that sometimes Setup project creates an icon in the Start menu that for some reason launches setup repair. Does the problem occur when you launch the site from the icon in the Start menu? If so, try running it by typing in the URL in the browser and see what happens. If not, we would need more details on what exactly you are doing to reproduce the problem.

Please let us know how did this go.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
thecobe
#3 Posted : Tuesday, April 22, 2008 6:34:38 AM(UTC)
Groups: Member
Joined: 4/21/2008(UTC)
Posts: 4
Location: Milan

Hi
thanks for your answer

As you wrote i have this problem when i run my application from the icon.
But it's strange because it would be only a shortcut of localstart.htm page not a shortcut of an application
Any idea to resolve this problem?

thanks
Marco
Ultidev Team
#4 Posted : Tuesday, April 22, 2008 6:39:21 AM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
We don't know how to make MSI behave properly there. The workaround we use internally is to use other means to create a shortcut. We use Windows Scripting COM component that can create icons. This is a pretty common problem that is not related to UltiDev Cassini. If you Google for setup repair and icon creation using Visual Studio setup project, you probably find some information.

Please let us know if we can help further.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
thecobe
#5 Posted : Tuesday, April 22, 2008 8:29:23 AM(UTC)
Groups: Member
Joined: 4/21/2008(UTC)
Posts: 4
Location: Milan

IS it possible to use this component or do you have some links to give me for others similar?
thanks in advance
bye
Marco
Ultidev Team
#6 Posted : Tuesday, April 22, 2008 8:44:39 AM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Marco,

We'll prepare the instructions on how to deal with icons launching repair installation and publish them, probably later today.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Ultidev Team
#7 Posted : Tuesday, April 22, 2008 6:48:30 PM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Marco,

We use Installer class to create and remove Start menu icons during installation/uninstallation process. Here's what we do:
1. Add reference to the Windows Script Host Object Model (it's a COM object) to the project where you Installer class is.
2. Your install custom step code would have to include something like this:
Code:
    WshShellClass WshShell = new WshShellClass();
    IWshRuntimeLibrary.IWshShortcut myShortcut =
        (IWshRuntimeLibrary.IWshShortcut)WshShell.CreateShortcut(shortcutPath);

    myShortcut.TargetPath = targetPath;
    myShortcut.Description = description;
    myShortcut.IconLocation = iconLocation;

    myShortcut.Save();

where shortcutPath is the path to the .lnk file in the Start menu.
3. Your uninstall custom step would include simple deletion of .lnk files created by the installation step.

Windows Scripting component is normally part of the default system installation, but sometimes (and we found this the hard way) this component is missing for some reason. Because of that, in your Setup project you may want to create a Launch Condition that will search the target system for the Windows Scripting component and will show a message if it's not found:
4. Create a Search Target Machine item in your Visual Studio setup project with following properties:
- Name: WScript.Shell.1
- Property: WSCRIPTSHELL1_CLSID
- RegKey: CLSID\{72C24DD5-D70A-438B-8A42-98424B88AFB8}
- Root: vsdrrHKCR
5. Create a Launch Condition with following properties:
- Name: Windows Scripting Host
- Condition: WSCRIPTSHELL1_CLSID
- InstallUrl: http://www.microsoft.com...2caa&DisplayLang=en
- Message: Microsoft Windows Script component is not found on this computer. Would you like to download Windows Script component from Microsoft web site?

Please let us know if this has helped.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Rss Feed  Atom Feed
Users browsing this topic
Guest (4)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You can vote in polls in this forum.