Zsolt Kollarits
Posts: 369
Joined: Fri May 29, 2015 10:36 am

Synchronized folder is empty after installation

Hi Advanced Installer,

I´m attaching our .aip file that was working fine so far, please take a look at the
IIS WWW Root\TWA\eForms
synchronized folder (screenshot)

Its source folder contains a lot of files, until we used AI 19.7 the installation went fine, and the desired files were installed into
inetpub\wwwroot\TWA\eForms
folder. (sceenshot)

After we upgraded our .aip to use AI 22.7, this "feature" stopped working for us: if we create a new .exe with AI 22.7, the
inetpub\wwwroot\TWA\eForms
folder stays empty, although we select the relevant feature of course.

Could you please test it?

Best regards,
Zsolt
Attachments
source folder.png
source folder.png (59.84 KiB) Viewed 1726 times
end_PC-all the files installed properly.png
end_PC-all the files installed properly.png (46.85 KiB) Viewed 1726 times
Liviu
Posts: 1328
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: Synchronized folder is empty after installation

Hello Zsolt,

I've replied to your email.

Let's continue the conversation there until we reach a conclusion.

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Zsolt Kollarits
Posts: 369
Joined: Fri May 29, 2015 10:36 am

Re: Synchronized folder is empty after installation

Hi Liviu,

I think we figured out what is wrong in the newest Advanced Installer.

So if we used AI 19.7 or even 20.1.1 versions to generate our.exe, then our .exe was always installing all the files into our sync folders. But AI version 22.7 is not doing that anymore, all files are missing.

Why?
Because we are creating our .exe with the following command:
""C:\Program Files (x86)\Caphyon\Advanced Installer 22.7\bin\x86\AdvancedInstaller.com" /rebuild TheCommonSetup.aip -buildslist Server_Online;Client_Online;Conversion_Server"

If this command is used, and AI 22.7 is used, then the output exe is broken, content of sync folder will be empty after installation
If we open up the .aip in AI 22.7 and on Builds panel we just generate an exe for Server_Online build, then the output exe is correct, and will install the files into the sync folders.

Could you please test that?

Best regards,
Zsolt
Liviu
Posts: 1328
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: Synchronized folder is empty after installation

Hello Zsolt,

Can you please use the Synchronization.RefreshFolder() method before saving and building the project?

Code: Select all

$advinst  = new-object -comObject "AdvancedInstaller"
$proj= $advinst.CreateProjectS("architect")
$new_folder = $proj.PredefinedFolders.ApplicationFolder.CreateFolder("MyApplication")
$new_folder.Synchronization.SourceFolder = "D:\MyApplication\MyApplication\bin\Release"
$new_folder.Synchronization.ExcludeFilters.NewNamePattern("*.pdb")
$new_folder.Synchronization.ExcludeFilters.NewNamePattern("*.aip")
# refresh folder
$release.Synchronization.RefreshFolder()
$proj.SaveAs("D:\MyApplication\MyApplication\Setup\Setup.aip")
$proj.Build()
Let me know if that helped.

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”