visualize .Net4

Got a problem you cannot solve? Try here.
Post Reply
JosefinBöckamp
Posts: 4
Joined: Tue Apr 10, 2012 1:29 am

visualize .Net4

Post by JosefinBöckamp »

While installing .net 4 in the background, I need a dialogue frame that opens with the message “.net 4 will be installed, this will take few minutes, please wait. Maybe with a process field, showing the process time. Is there an example we could use.
Problem is: We do have a program that within the installation routine the .net 4 must be installed. As soon as the .net 4 starts to install, there is no more process showing on the desktop. Therefore the user could get the impression, nothing happens. Starting the “Task Manager” you see the installation process. We would like to visualize for the user, that the installation takes place.
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: visualize .Net4

Post by FrancescoT »

Dear User,

Probably I have not fully understood your question. What do you mean for "While installing .net 4 in the background"?

If you include those runtimes in InstallAware, you should already have a "progress dialog" that displays the execution status.
Generally in the "[DEFINE REGION: Install Application Pre-Requisites]" of your main script, should be a call to the script that install the runtime. In this you find the status porogress operation update sequence.


Let me know.
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
JosefinBöckamp
Posts: 4
Joined: Tue Apr 10, 2012 1:29 am

Re: visualize .Net4

Post by JosefinBöckamp »

hallo,

das framework installiert er ohne jeglichen Dialog oder prozess Anzeige. ich habe den Code der Region mal ausgeschnitten und hinzugefügt da passiert nichts.

DANKE

Code: Select all

Comment: Install setup pre-requisites
if Variable PREREQ not Equals FALSE
  Comment: Display Dialog: prereq, wait for dialog to return (modal)
  if Variable WIZARD Equals CANCEL
    Terminate Installation
  end
  Comment: Display Dialog: progressprereq, use as progress dialog (non-modal)
  [compiler if Variable BUILDMODE not Equals PATCH]
   
  Comment: ------------------------------------------
  if Variable NEEDSUPGRADE Equals TRUE
    Set Variable REMOVEOLD to 
    Set Variable ERROROLD to 
    Install/Remove MSI Package $PRODUCTCODE$[REMOVE=ALL] (get result into variable REMOVEOLD)
    if Variable REMOVEOLD Equals ERROR
      MessageBox: $TITLE$ Setup, Unable to uninstall old version of $TITLE$. Please uninstall it yourself using Control Panel Add-Remove Programs before attempting to install this product.$NEWLINE$$NEWLINE$$ERROROLD$
      Terminate Installation
    end
    if Variable REMOVEOLD Equals REBOOT
      MessageBox: $TITLE$ Setup, Your computer needs to be restarted before $TITLE$ Setup can continue.$NEWLINE$$NEWLINE$Please save your work in all running programs and click OK to restart your computer. Setup will resume once your computer restarts.$NEWLINE$$NEWLINE$If you click CANCEL, setup will exit. You will have to run setup again at a later time to install $TITLE$.
      if Variable REBOOTNOW Equals OK
        Reboot Computer and Resume Setup
        else
        Terminate Installation
      end
    end
    Set Variable MAINTENANCE to FALSE
  end
  [DEFINE WEB MEDIA Microsoft Windows Installer 3.1]
  Include Script: setupmsi31
  [DEFINE WEB MEDIA Microsoft .NET Framework Client 4 (x64)]
  Include Script: setupnet4aip_client_x64
  [DEFINE WEB MEDIA Microsoft .NET Framework Client 4]
  Include Script: setupnet4aip_client_x86
  [DEFINE WEB MEDIA Microsoft Windows Installer 2.0]
  Include Script: setupmsi20
  [compiler end]
  Hide Dialog
end
<<Code Folding Region>>
JosefinBöckamp
Posts: 4
Joined: Tue Apr 10, 2012 1:29 am

Re: visualize .Net4

Post by JosefinBöckamp »

hello,

the framework installed it without any dialogue or process indicator. I cut out the region code once and then added, nothing happens.

THANK YOU
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: visualize .Net4

Post by FrancescoT »

Dear User,

Fortunately you have translated your previous post :?

The code you showed me it is the MAIN script that calls the real script that execute the installation.
The script that is responsable of the runtime installation is : "setupnet4aip_client_x64.mia".

Anyway I have included in this post a very simple project that demostrates it, it does not use WEB MEDIA BLOCKS, but it is quite the same.
The project once compiled requires a 64 bit OS target to be executed.

Regards
Attachments
net64.rar
(655.46 KiB) Downloaded 423 times
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Post Reply