[wix-users] How to show " Disk Available " and "Disk Required"
Farrukh Waheed
farrukh1 at gmail.com
Sun Sep 20 22:03:35 PDT 2015
Hi Niraj,
You may need to parse BootstrapperApplicationData.xml which is created in
Temp folder every time you execute your bundle. On my machine, here is the
location:
C:\Users\Farrukh\AppData\Local\Temp\{907115bf-f10c-49c4-8947-da2c03c56492}\.ba1\BootstrapperApplicationData.xml
You can access this in Managed Bootstrapper application, using "Assembly.
GetExecutingAssembly().Location"
Along with many other useful info, this also contains the size of almost
every package and payload you are packing with your bundle. Here is an
example from my machine:
<WixPackageProperties Package="NetFx451Redist" Vital="yes"
DisplayName="Microsoft .NET Framework 4.5.1" Description="Microsoft .NET
Framework 4.5.1 Setup" DownloadSize="70087104" *PackageSize="70087104"*
InstalledSize="70087104" PackageType="Exe" Permanent="yes"
LogPathVariable="NetFx451FullLog"
RollbackLogPathVariable="WixBundleRollbackLog_NetFx451Redist"
Compressed="yes" DisplayInternalUI="no" Version="4.5.50938.18408"
Cache="yes" />
<WixPackageProperties Package="VC_ReDist_120" Vital="yes"
DisplayName="Microsoft Visual C++ Redistributable 2013 (x64)"
Description="Microsoft Visual C++ Redistributable 2013 (x64) setup"
DownloadSize="7188536" *PackageSize="7188536" *InstalledSize="7188536"
PackageType="Exe" Permanent="yes"
LogPathVariable="WixBundleLog_VC_ReDist_120"
RollbackLogPathVariable="WixBundleRollbackLog_VC_ReDist_120"
Compressed="yes" DisplayInternalUI="no" Version="12.0.21005.1" Cache="yes"
/>
<WixPayloadProperties Payload="MainProduct" Package="MainProduct"
Container="WixAttachedContainer" Name="MyProduct.msi" *Size="3973120"*
LayoutOnly="no" />
Hope this helps.
Farrukh
On 20 September 2015 at 17:10, NIRAJ_IT <neerajkv.130012 at gmail.com> wrote:
> Hello Wix Users,
>
> Thanks for giving valuable response in my last thread.
>
> I have one more requirement and i will find very difficult to achieve it.
>
> Requirement is i have to show
>
> Disk available "xxxxx"
> Disk Requires "xxxxxx"
>
> when user select the location of folder in which software have to install ,
> i have to show these two things according to selected folder.
>
> Please help me out.
>
> Thanks
> Niraj Kumar.
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/
>
More information about the wix-users
mailing list