oksanaisaev
24th November 2005 15:12 UTC
Web Application Installation script
Hi.
Did somebody write WebApplication installation script that can configer IIS, create virtual folder for the application being installed in the wwwroot?
Or may be saw it publicated?
If anybody wrote it, can you share the script?
I need it so much!!!!
Any help regarding that issue will be appreciated.
Thanks.
Oksana
oksanaisaev
24th November 2005 16:16 UTC
Thanks for your reply,
Takhir and robotmp3.
But I'm a new one with NSIS.
I've just found it in the internet 2 days ago
when I had a trouble with installation our PocketPC application with SQL CE and framework in the same setup running.
I found a very usefull article about NSIS script editor and compiler with script sample.
http://www.pocketpcmag.com/_archives...nstallers.aspx
Thanks for the author and for NSIS developing team, we have now great installer that does its job simply cool.
I saw a "Setting up a virtual directory" article you sent me
, but just as I said, I'm new in NSIS and I think I have a trouble with creating its script.
I need to register com dlls in it and I don't need to write any information in the Registry as it is Web application.
I wonder about the order of actions in .nsi too.
robotmp3
24th November 2005 16:47 UTC
I need to register com dlls
Var $INST_ERR
Function RegisterCOM
DetailPrint "Register COM dlls"
ClearErrors
nsExec::ExecToLog '$WINDIR\Microsoft.NET\Framework\v1.1.4322\RegAsm.exe "$INSTDIR\yourdll.dll" /codebase /silent"' $INST_ERR
IfErrors RegErr FinishReg
RegErr:
DetailPrint "Registering COM failed. $INST_ERR"
Abort
FinishReg:
FunctionEnd
oksanaisaev
24th November 2005 17:36 UTC
Thanks, robotmp3.
Takhir
24th November 2005 17:59 UTC
May be this is too simple, but some people also use RegDll NSIS instruction. And NSIS Manual Appendix B describes some dll quetions.
oksanaisaev
29th November 2005 19:53 UTC
WebAppInstaller script
Hi guys,
I wrote the script i needed and now I can share it.
Thanks to the author [icebrrrg] of the "Setting up a virtual directory" example.
For register and unregister com dlls
i use "Exec" command that run .bat file
with the "regsvr32 /s YourDllName.dll"
commands for each com server.
The same with the unregistering while running uninstall:
"regsvr32 /U /s YourDllName.dll" commands in the unreg.bat file.
Hope, it will be used.
Oksana.