Skip to content

Commit

Permalink
Improved the location of XP DLLs and drivers.
Browse files Browse the repository at this point in the history
  • Loading branch information
hsluoyz committed Jun 4, 2016
1 parent 6fd3775 commit 97f68d0
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 22 deletions.
43 changes: 21 additions & 22 deletions installer/Deploy.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,13 @@ $init_to_path_array =
".\win8_above{0}\x86\",
".\win8_above{0}\x64\"

###########################################################
# wpcap.dll
$wpcap_filename = "wpcap.dll"
$wpcap_init_from_path_array =
"..\wpcap\PRJ\Release No AirPcap\x86\",
"..\wpcap\PRJ\Release No AirPcap\x64\"

###########################################################
# Packet.dll
$packet_filename = "Packet.dll"
Expand Down Expand Up @@ -85,16 +92,6 @@ $wlanhelper_init_from_path_array =
"..\packetWin7\WlanHelper\release\",
"..\packetWin7\WlanHelper\x64\release\"

###########################################################
# wpcap.dll
$wpcap_filename = "wpcap.dll"
$wpcap_init_from_path_array =
"..\wpcap\PRJ\Release No AirPcap\x86\",
"..\wpcap\PRJ\Release No AirPcap\x64\"
$wpcap_init_to_path_array =
".\",
".\x64\"


function initialize_list([ref]$file_name_array, [ref]$from_path_array, [ref]$to_path_array)
{
Expand All @@ -119,6 +116,20 @@ function initialize_list([ref]$file_name_array, [ref]$from_path_array, [ref]$to_
}
}
}

# wpcap.dll
for ($i = 0; $i -lt 2; $i ++)
{
$vs_config_mode = $vs_config_mode_array[$i]
$deploy_folder_mode = $deploy_folder_mode_array[$i]

for ($j = 0; $j -lt 2; $j ++)
{
$my_file_name_array += $wpcap_filename
$my_from_path_array += $wpcap_init_from_path_array[$j] -f $vs_config_mode
$my_to_path_array += $init_to_path_array[$j] -f $deploy_folder_mode
}
}

# Packet.dll
for ($i = 0; $i -lt 2; $i ++)
Expand Down Expand Up @@ -175,18 +186,6 @@ function initialize_list([ref]$file_name_array, [ref]$from_path_array, [ref]$to_
$my_to_path_array += $init_to_path_array[$j] -f $deploy_folder_mode
}
}

# wpcap.dll
for ($j = 0; $j -lt 2; $j ++)
{
$my_file_name_array += $wpcap_filename
$my_from_path_array += $wpcap_init_from_path_array[$j] -f $vs_config_mode
$my_to_path_array += $wpcap_init_to_path_array[$j]
}

$file_name_array.value = $my_file_name_array
$from_path_array.value = $my_from_path_array
$to_path_array.value = $my_to_path_array
}

function copy_and_sign($file_name, $from_path, $to_path)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 97f68d0

Please sign in to comment.