Sửa lỗi file nlssrv32.exe is not current version

In General Information you set the "ProductVersion" property of the MSI. Setup.exe is nothing but a bootstrapper that launches your installation with prerequisites, properties, etc. To change the File Version of the Setup.exe you need to open it with Visual Studio and navigate to Version node.

Peter

  • Mark as New
  • Subscribe
  • Mute
  • Print
  • Report Inappropriate Content

The version number that InstallShield puts into the setup launcher (in this case, setup.exe) corresponds to the version of InstallShield that build the exe (in the case of InstallShield 2009, that version is 15.x.x.x).

  • Mark as New
  • Subscribe
  • Mute
  • Print
  • Report Inappropriate Content

DanGalender,

I see. Thanks for the info.

But guys, I have a follow up question. I tried to change the file version of my setup.exe file with VS2005 and succeeded...so to speak. The file version was changed but the setup file was corrupted also. Before changing the file version, the file size of the setup.exe was about 4 MB, after changing the file size, it becomes some 300 KB and, of course, it doesn't run anymore.

Anyone knows why?

  • Mark as New
  • Subscribe
  • Mute
  • Print
  • Report Inappropriate Content

Without even going into the issue you're having with the size (and integrity) of the setup.exe file, I can think of some drawbacks to modifying the exe file. For example, if the exe was digitally signed, modifying the file will invalidate the signature. Also, you'd have to do this after every build.

Have you considered using the product version in the file name (like "My Product 4.2.exe" or "MyProduct V4.2.exe") rather than tampering with the file version? Not only does this eliminate the need to post-process the exec after every build, but it make it even easier for your users to see what the file installes (saves at least 3 mouse clicks and another window on the screen).

  • Mark as New
  • Subscribe
  • Mute
  • Print
  • Report Inappropriate Content

Dan, (it's Dan, right?)

First of all, thanks a lot for your reply.

I have thought about doing it your way. However, this issue came up because some of our customers expressed the concern about the inconsistency of the "Product Version" (defined in the General Info) and the "File Version" in question. That's why I'm looking for a way to do this.

Again, thanks for the reply.

  • Mark as New
  • Subscribe
  • Mute
  • Print
  • Report Inappropriate Content
    Clue.Clueless wrote: Dan, (it's Dan, right?)

First of all, thanks a lot for your reply.

I have thought about doing it your way. However, this issue came up because some of our customers expressed the concern about the inconsistency of the "Product Version" (defined in the General Info) and the "File Version" in question. That's why I'm looking for a way to do this.

Again, thanks for the reply.

IS does not provide RC or Assemblyinfo type of file where you could make these changes, only option you have is to download a reliable resourceeditor open you setup.exe and change the strings are you please..

one of them which i have used sucessfully is

http://www.wilsonc.demon.co.uk/d10resourceeditor.htm

HTH

  • Mark as New
  • Subscribe
  • Mute
  • Print
  • Report Inappropriate Content

Hi Gvarma

The utility that you referred to also corrupts the installer. The actual size of the installer is 17 MB and after modifications the size comes down to around 360 Kb.

Any other alternates.

Thanks Gurindersm

  • Mark as New
  • Subscribe
  • Mute
  • Print
  • Report Inappropriate Content

Clue.Clueless wrote: Guys,

Here is an interesting one.

I'm using IS2008 building an InstallScript MSI project. I'm wondering how do you change the file version of the Setup.exe file built? This file version I'm talking about is the one you see on the Version tab of the Properties dialog of the setup.exe file (right click on the setup.exe file and then select Properties on Windows XP/select Details on VISTA).

It is not the same as the application version you entered in General Information, though I think it should be.