Jump to content
Xtreme .Net Talk

michelek

Members
  • Posts

    12
  • Joined

  • Last visited

michelek's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. There are 3 .dll and some other .exe files that my setup needs to install into the windows\system32 directory. It installs all of the files except 2 of the .dll files. The dll that installs is a perl interpreter, but the other 2 dll's are dll's created by the engineers here for our product. The file properties are the same for installing as the other dll that installs just fine. I've also tried making sure I run the setup on a clean machine and then re-boot. The dll's also install just fine into the application directory. I'm puzzled as to why the other 2 dll's won't install into the windows\system32 directory? Thanks
  2. So you say to create a registry key and check it first thing of the install. And run the executable if it's true.....But opposite to what the user wrote...How can I run an executable at the start of the setup before coping any files?
  3. When I set the "RemovePreviousVersions" property to true I still get the options to remove or repair the installation if you click on the setup twice. I don't that dialog box to show when you install it twice.
  4. I still haven't figured out how to execute a file/C# code before the setup copies the files. Does anyone know of a way? Any help appreciated.
  5. I'm installing my own application and using vs.net to create the setup.
  6. I have a couple of things that need to be at the beginning of the install before the copying of any files. For example, call functions from a dll, delete old files before the install starts, etc.... And it doesn't fall into the launch conditions editor section. How would I be able to do this at the beginning of the installation? Thanks
  7. Is there anyway for the .net setup to install on top of the previous installation without uninstalling the previous install first? If so, how can I do this. Also, if it turns out that it's possible how would I be able to detect that I'm installing on top of a previous installation and it's not the 1st install? Thanks
  8. I am new to C# and I'm trying to launch the default internet browser. I'm getting the error message "The requested section was not present in the activation context" when I run the setup application. Does anyone know what this error message means? And does anyone know of a good C# book with good examples and talks about setup and deployment? Here's the code that I've placed after the InitializeComponent function: public override void Install(IDictionary stateSaver) { base.Install (stateSaver); string target = "http://www.microsoft.com"; try { System.Diagnostics.Process.Start(target); } catch (System.ComponentModel.Win32Exception noBrowser) { if(noBrowser.ErrorCode==-2147467259) MessageBox.Show(noBrowser.Message); } catch (System.Exception other) { MessageBox.Show(other.Message); } }
  9. Thanks. It's working now. I found a syntax error.
  10. I am trying to use the following code to launch the default web browser. I get the error messages on compilation: The type or namespace name 'ComponentModel' does not exist in the class or namespace 'System' (are you missing an assembly reference?) The type or namespace name 'noBrowser' could not be found (are you missing a directive or an assembly reference?) I have looked in many places but I don't know which assembly reference needs to be added in order for it to compile. Could anyone help? using System; using System.Collections; using System.ComponentModel; using System.Configuration.Install; using System.Windows.Forms; . . . string target = "http://www.ospreyvideo.com/productreg.asp"; try { System.Diagnostics.Process.Start(target); } catch (System.ComponentMode1.Win32Exception noBrowser) { if(noBrowser.ErrorCode==-2147467259) MessageBox.Show(noBrowser.Message); } catch (System.Exception other) { MessageBox.Show(other.Message); }
×
×
  • Create New...