dll exe question

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi all,
I do have a .net dll that needs to call a form from a .net exe.
dim asm as [Assembly] = [Assembly].LoadFrom("MyApp.exe")
MyApp.exe path will be decided when MyApp is installed on the user pc. I
need to be able to set LoadFrom["?"] value based on the user installation
path. This dll is also used in MyApp application. If dll and exe are in one
directory I don't have problem.
Does anyone have any suggestion for this. Thanks in advance.
Roy
 
Roy said:
I do have a .net dll that needs to call a form from a .net exe.
dim asm as [Assembly] = [Assembly].LoadFrom("MyApp.exe")
MyApp.exe path will be decided when MyApp is installed on the user pc. I
need to be able to set LoadFrom["?"] value based on the user installation
path.

Mhm... If the EXE file is copied to the destination computer separately,
there is no way to get its path without scanning the directories/drives for
the file.
 
Dear Herfried,
Is it possible to do this?
1. To write a method in the dll class to get the path for the application
from a text file or table.
2. Install the application.
3. Write path of the application to the text file or database.
Are there other ways to do this?
Thanks again,
Roy

Herfried K. Wagner said:
Roy said:
I do have a .net dll that needs to call a form from a .net exe.
dim asm as [Assembly] = [Assembly].LoadFrom("MyApp.exe")
MyApp.exe path will be decided when MyApp is installed on the user pc. I
need to be able to set LoadFrom["?"] value based on the user installation
path.

Mhm... If the EXE file is copied to the destination computer separately,
there is no way to get its path without scanning the directories/drives for
the file.
 
Back
Top