Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. could not find a part of the path... [modified]

could not find a part of the path... [modified]

Scheduled Pinned Locked Moved Visual Basic
helpcsharpworkspace
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mehrnoosh
    wrote on last edited by
    #1

    hi all i create a setup file with vb.net2008 in win app in setup class i have a function that install msde with process.start instruction.i copied the msde2000 folder in bin folder in my application and use this code for setup class:

    Dim fsOutput As New FileStream(Application.StartupPath.ToString & "\MSDE2000\setup.ini", FileMode.Create, FileAccess.Write)

    my function is true but when i run setup.exe file, this error is shown:

    could not find a part of the path "c:\windows\system32\MSDE2000\setup.ini"

    my program is in drive f. but why is it looking under "c:\windows\system32" please help me :(

    M.Alizadeh

    modified on Tuesday, March 2, 2010 4:00 AM

    I 1 Reply Last reply
    0
    • M mehrnoosh

      hi all i create a setup file with vb.net2008 in win app in setup class i have a function that install msde with process.start instruction.i copied the msde2000 folder in bin folder in my application and use this code for setup class:

      Dim fsOutput As New FileStream(Application.StartupPath.ToString & "\MSDE2000\setup.ini", FileMode.Create, FileAccess.Write)

      my function is true but when i run setup.exe file, this error is shown:

      could not find a part of the path "c:\windows\system32\MSDE2000\setup.ini"

      my program is in drive f. but why is it looking under "c:\windows\system32" please help me :(

      M.Alizadeh

      modified on Tuesday, March 2, 2010 4:00 AM

      I Offline
      I Offline
      i i i
      wrote on last edited by
      #2

      try this Imports System.IO Imports System.Reflection Private Function ApplicationPath() As String Return _ Path.GetDirectoryName([Assembly].GetExecutingAssembly().Location) End Function

      Best Regards, SOFTDEV If you have knowledge, let others light their candles at it

      M 1 Reply Last reply
      0
      • I i i i

        try this Imports System.IO Imports System.Reflection Private Function ApplicationPath() As String Return _ Path.GetDirectoryName([Assembly].GetExecutingAssembly().Location) End Function

        Best Regards, SOFTDEV If you have knowledge, let others light their candles at it

        M Offline
        M Offline
        mehrnoosh
        wrote on last edited by
        #3

        thanks but now this error appears : could not find a part of the path "d:\installer.exe\MSDE2000\setup.ini" d: is the path that i want to install my setup file:(

        M.Alizadeh

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups