Custom Actions for .NET project setups

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

Guest

Hi,

I need to preinstall silently some applications and runtimes (.net
runtimes) before I install my application but want to do this from a .bat
file. I tried to add this as a custom action in the setup project in "Add
files" but its not allowing .bat files. Are .bat files no longer supported
and I have to write a .NET assembly to do such a trivial task? Isnt this
overkill?

Thanks.
 
Hi,
I need to preinstall silently some applications and runtimes (.net
runtimes) before I install my application but want to do this from a .bat

Could you explain in more detail which applications and runtimes are these?

Generally speaking, you have several options:

a) Nested installations (requires manual MSI file tweaking with Orca or MSI
SDK scripts)
b) Bootstrapper application which would install the apps and runtimes first
and your application second
c) An unmanaged EXE or DLL doing the custom installation (possibly requires
manual MSI file tweaking with Orca or MSI SDK scripts)
d) VBScript-based custom action (possibly requires manual MSI file tweaking
with Orca or MSI SDK scripts)

NOTE: I am not sure about c) and d) in the sense whether they are supported
by Visual Studio .NET setup projects. But these options are definitely
supported by Windows Installer

You should probably ask further questions in the
microsoft.public.dotnet.framework.setup or in a Windows Installer/MSI
newsgroups.
 
Back
Top