Jump to content
Sign in to follow this  
Javo

duda con inno setup

Recommended Posts

rick tengo una duda con el inno setup, te cuento lo que quiero hacer: despues que se instale la aplicacion, quiero que en temporal corra el instalador del VC++2010 pero me genera error

 

mira lo tengo asi:

[Files]Source: "D:\DESCARGAS\vcredist_x86\*"; DestDir: "{tmp}"; Flags: ignoreversion recursesubdirs createallsubdirs[Run]Filename: "{tmp}\vc_red.msi"; Parameters: "/qn"; Flags: postinstall skipifsilent unchecked

es correcto o esta mal?

 

y el error que me tira es este:

 

nd78sz.png

 

slds!!!!

Share this post


Link to post
Share on other sites

rick sabes que encontre unos scripts en una carpeta redist, ahora como los tendria que poner en el iss?

 

te doy un ejemplo Net4:

"installscript"{	"Run Process"	{		"4.0 Client Profile"		{			"hasrunkey"		"HKEY_LOCAL_MACHINE\\Software\\Valve\\Steam\\Apps\\CommonRedist\\.NET\\4.0 Client Profile"			"process 1"		"%INSTALLDIR%\\_CommonRedist\\DotNet\\4.0 Client Profile\\Microsoft .NET Framework 4.0 Client Profile.cmd"			"nocleanup"		"1"		}	}}"kvsignatures"{	"installscript"		"21f349f31bf6d900d08d0a31edc8b214e77f730927d953011471f7e53b8eff1c1f35c3e66326507730cce62a1f94af4e5a8e49a31a4b515af20781735cb7d3b86a5a11a711d4c8a303f76ea3b831e4c5f285e5394b2e6c706f79727c2bc36e631603d3e6d8e902af79f303603ab33241aa10c69f9a7322c3971b3ecc4dbb983b"}
por lo que entiendo tengo que copiar eso y pegarlo en la seccion {code} del iss?

 

es decir aqui:

[Code]procedure MyBeforeInstall();begin  MsgBox('About to install MyProg.exe as ' + CurrentFileName + '.', mbInformation, MB_OK);end;procedure MyBeforeInstall2(FileName: String);begin  MsgBox('About to install ' + FileName + ' as ' + CurrentFileName + '.', mbInformation, MB_OK);end;procedure MyAfterInstall();begin  MsgBox('Just installed MyProg.exe as ' + CurrentFileName + '.', mbInformation, MB_OK);end;procedure MyAfterInstall2(FileName: String);begin  MsgBox('Just installed ' + FileName + ' as ' + CurrentFileName + '.', mbInformation, MB_OK);end;
en el caso que quira poner los visualC++ lo hago a continuacion del net?

los scripts tienen extencion .vdf

slds!!!!

Edited by Javo

Share this post


Link to post
Share on other sites

La verdad Javo, la sección de code no es mi especialidad. Solo se modificar el code de otros para funcionar para lo que yo necesite

gracias igual por contestar rick.

Share this post


Link to post
Share on other sites

Ya sé que llego tarde, pero yo lo he solucionado así con Nod32:  (lo he encontrado en la red)

[Files]Source: "{tmp}\eav_nt32_esn.msi"; DestDir: "{tmp}"; Check: Not IsWin64Source: "{tmp}\eav_nt64_esn.msi"; DestDir: "{tmp}"; Check: IsWin64[Run]Filename: "msiexec.exe"; Parameters: "/i""{tmp}\eav_nt32_esn.msi""/qr /norestart"; Check: Not IsWin64 Filename: "msiexec.exe"; Parameters: "/i""{tmp}\eav_nt64_esn.msi""/qr /norestart"; Check: IsWin64 

SaluII... ;-)

Edited by alfreire

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...